Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: add test for async disposable worker thread
PR-URL: #58385
Backport-PR-URL: #58455
Reviewed-By: LiviaMedeiros <livia@cirno.name>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
  • Loading branch information
jasnell authored and aduh95 committed Jul 28, 2025
commit 66fccc252b44e2e9b7f399f23a5abd3ebda04c46
9 changes: 9 additions & 0 deletions test/parallel/test-worker-dispose.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as common from '../common/index.mjs';
import { Worker } from 'node:worker_threads';

{
// Verifies that the worker is async disposable
const worker = new Worker('for(;;) {}', { eval: true });
worker.on('exit', common.mustCall());
await worker[Symbol.asyncDispose]();
}
Loading