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

Function init

benchmark/async_hooks/async-resource-vs-destroy.js:53–58  ·  view source on GitHub ↗
(asyncId, type, triggerAsyncId, resource)

Source from the content-addressed store, hash-verified

51 }
52
53 function init(asyncId, type, triggerAsyncId, resource) {
54 const cr = executionAsyncResource();
55 if (cr !== null) {
56 resource[cls] = cr[cls];
57 }
58 }
59
60 function close() {
61 hook.disable();

Callers

nothing calls this directly

Calls 3

executionAsyncResourceFunction · 0.85
getCLSFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…