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 <duhamelantoine1995@gmail.com>
Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
debbs061 authored and targos committed Aug 14, 2024
1 parent b52c2ff commit af99ba3
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 af99ba3

Please sign in to comment.