Skip to content

Commit 7941b4b

Browse files
authored
doc: remove unused imports from worker_threads.md
PR-URL: #54147 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Deokjin Kim <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 67bc6a4 commit 7941b4b

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)