From 7941b4b3330cd38e11180280cd8714d0d0906930 Mon Sep 17 00:00:00 2001 From: Yelim Koo <46446403+debbs061@users.noreply.github.com> Date: Thu, 1 Aug 2024 02:11:13 +0900 Subject: [PATCH] doc: remove unused imports from worker_threads.md PR-URL: https://github.com/nodejs/node/pull/54147 Reviewed-By: Antoine du Hamel Reviewed-By: Deokjin Kim Reviewed-By: Luigi Pinca --- doc/api/worker_threads.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index f15c9f49c37ed0..402780ca0bbcaa 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -290,10 +290,8 @@ the last one will try to communicate with the main thread. ```mjs import { fileURLToPath } from 'node:url'; -import { once } from 'node:events'; import process from 'node:process'; import { - isMainThread, postMessageToThread, threadId, workerData, @@ -328,9 +326,7 @@ channel.onmessage = channel.close; ``` ```cjs -const { once } = require('node:events'); const { - isMainThread, postMessageToThread, threadId, workerData,