| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent de7a7cd commit f941232
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1983,10 +1983,10 @@ worker.on('online', async () => { | |||
| 1983 | 1983 | `await using` example. | |
| 1984 | 1984 | ||
| 1985 | 1985 | ```cjs | |
| 1986 | - const { Worker } = require('node::worker_threads'); | ||
| 1986 | + const { Worker } = require('node:worker_threads'); | ||
| 1987 | 1987 | ||
| 1988 | 1988 | const w = new Worker(` | |
| 1989 | - const { parentPort } = require('worker_threads'); | ||
| 1989 | + const { parentPort } = require('node:worker_threads'); | ||
| 1990 | 1990 | parentPort.on('message', () => {}); | |
| 1991 | 1991 | `, { eval: true }); | |
| 1992 | 1992 | ||
@@ -2026,10 +2026,10 @@ worker.on('online', async () => { | |||
| 2026 | 2026 | `await using` example. | |
| 2027 | 2027 | ||
| 2028 | 2028 | ```cjs | |
| 2029 | - const { Worker } = require('node::worker_threads'); | ||
| 2029 | + const { Worker } = require('node:worker_threads'); | ||
| 2030 | 2030 | ||
| 2031 | 2031 | const w = new Worker(` | |
| 2032 | - const { parentPort } = require('worker_threads'); | ||
| 2032 | + const { parentPort } = require('node:worker_threads'); | ||
| 2033 | 2033 | parentPort.on('message', () => {}); | |
| 2034 | 2034 | `, { eval: true }); | |
| 2035 | 2035 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments