Skip to content

Commit

Permalink
doc: remove unused imports from worker_threads.md
Browse files Browse the repository at this point in the history
PR-URL: #54147
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Deokjin Kim <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
debbs061 authored Jul 31, 2024
1 parent 67bc6a4 commit 7941b4b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions doc/api/worker_threads.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -328,9 +326,7 @@ channel.onmessage = channel.close;
```
```cjs
const { once } = require('node:events');
const {
isMainThread,
postMessageToThread,
threadId,
workerData,
Expand Down

0 comments on commit 7941b4b

Please sign in to comment.