MCPcopy Index your code
hub / github.com/nodejs/node / main

Function main

test/parallel/test-async-hooks-enable-disable-enable.js:11–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9async_hooks.createHook({ init: () => {} }).enable();
10
11async function main() {
12 const initialAsyncId = async_hooks.executionAsyncId();
13 await 0;
14 assert.notStrictEqual(async_hooks.executionAsyncId(), initialAsyncId);
15}
16
17main().then(common.mustCall());

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…