| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b52c2ff commit af99ba3
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -290,10 +290,8 @@ the last one will try to communicate with the main thread. | |||
| 290 | 290 | ||
| 291 | 291 | ```mjs | |
| 292 | 292 | import { fileURLToPath } from 'node:url'; | |
| 293 | - import { once } from 'node:events'; | ||
| 294 | 293 | import process from 'node:process'; | |
| 295 | 294 | import { | |
| 296 | - isMainThread, | ||
| 297 | 295 | postMessageToThread, | |
| 298 | 296 | threadId, | |
| 299 | 297 | workerData, | |
@@ -328,9 +326,7 @@ channel.onmessage = channel.close; | |||
| 328 | 326 | ``` | |
| 329 | 327 | ||
| 330 | 328 | ```cjs | |
| 331 | - const { once } = require('node:events'); | ||
| 332 | 329 | const { | |
| 333 | - isMainThread, | ||
| 334 | 330 | postMessageToThread, | |
| 335 | 331 | threadId, | |
| 336 | 332 | workerData, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments