We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b52c2ff commit af99ba3Copy full SHA for af99ba3
doc/api/worker_threads.md
@@ -290,10 +290,8 @@ the last one will try to communicate with the main thread.
290
291
```mjs
292
import { fileURLToPath } from 'node:url';
293
-import { once } from 'node:events';
294
import process from 'node:process';
295
import {
296
- isMainThread,
297
postMessageToThread,
298
threadId,
299
workerData,
@@ -328,9 +326,7 @@ channel.onmessage = channel.close;
328
326
```
329
327
330
```cjs
331
-const { once } = require('node:events');
332
const {
333
334
335
336
0 commit comments