A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nodejs/node/commit/7a91f4aaa1 below:

add test for async disposable worker thread · nodejs/node@7a91f4a · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+8

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+8

-0

lines 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 +

}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4