MCPcopy Create free account
hub / github.com/nodejs/undici / init

Function init

test/node-test/async_hooks.js:25–29  ·  view source on GitHub ↗
(asyncId, type, triggerAsyncId, resource)

Source from the content-addressed store, hash-verified

23
24const hook = createHook({
25 init (asyncId, type, triggerAsyncId, resource) {
26 if (type === 'TIMERWRAP') return
27 // process._rawDebug(type + ' ' + asyncId)
28 transactions.set(asyncId, getCurrentTransaction())
29 },
30 destroy (asyncId) {
31 transactions.delete(asyncId)
32 }

Callers

nothing calls this directly

Calls 2

getCurrentTransactionFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected