Skip to content

Commit 629f21c

Browse files
debbs061pull[bot]
authored andcommitted
doc: remove unused imports from worker_threads.md
PR-URL: #54147 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 1a7300b commit 629f21c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

doc/api/worker_threads.md

-4
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,8 @@ the last one will try to communicate with the main thread.
290290

291291
```mjs
292292
import { fileURLToPath } from 'node:url';
293-
import { once } from 'node:events';
294293
import process from 'node:process';
295294
import {
296-
isMainThread,
297295
postMessageToThread,
298296
threadId,
299297
workerData,
@@ -328,9 +326,7 @@ channel.onmessage = channel.close;
328326
```
329327
330328
```cjs
331-
const { once } = require('node:events');
332329
const {
333-
isMainThread,
334330
postMessageToThread,
335331
threadId,
336332
workerData,

0 commit comments

Comments
 (0)