From f2f6dbce245d25883d3f760cbfbf402f46b773c6 Mon Sep 17 00:00:00 2001 From: Yelim Date: Wed, 31 Jul 2024 23:49:44 +0900 Subject: [PATCH] doc: remove unused imports from worker_threads.md --- 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,