| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent aeb9ab4 commit 7a91f4a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,8 @@ | |||
| 1 | + import * as common from '../common/index.mjs'; | ||
| 2 | + import { Worker } from 'node:worker_threads'; | ||
| 3 | + | ||
| 4 | + { | ||
| 5 | + // Verifies that the worker is async disposable | ||
| 6 | + await using worker = new Worker('for(;;) {}', { eval: true }); | ||
| 7 | + worker.on('exit', common.mustCall()); | ||
| 8 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments