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

Function init

test/parallel/test-async-hooks-execution-async-resource-await.js:16–19  ·  view source on GitHub ↗
(asyncId, type, triggerAsyncId, resource)

Source from the content-addressed store, hash-verified

14
15createHook({
16 init(asyncId, type, triggerAsyncId, resource) {
17 const cr = executionAsyncResource();
18 resource[sym] = cr[sym];
19 }
20}).enable();
21
22async function handler(req, res) {

Callers

nothing calls this directly

Calls 1

executionAsyncResourceFunction · 0.85

Tested by

no test coverage detected