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

Function init

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

Source from the content-addressed store, hash-verified

12
13createHook({
14 init(asyncId, type, triggerAsyncId, resource) {
15 const cr = executionAsyncResource();
16 resource[sym] = cr[sym];
17 }
18}).enable();
19
20const server = createServer(function(req, res) {

Callers

nothing calls this directly

Calls 1

executionAsyncResourceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…