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

Function getDefaultTriggerAsyncId

lib/internal/async_hooks.js:442–448  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

440// the user to safeguard this call and make sure it's zero'd out when the
441// constructor is complete.
442function getDefaultTriggerAsyncId() {
443 const defaultTriggerAsyncId = async_id_fields[kDefaultTriggerAsyncId];
444 // If defaultTriggerAsyncId isn't set, use the executionAsyncId
445 if (defaultTriggerAsyncId < 0)
446 return async_id_fields[kExecutionAsyncId];
447 return defaultTriggerAsyncId;
448}
449
450
451function clearDefaultTriggerAsyncId() {

Callers 9

constructorMethod · 0.85
initAsyncResourceFunction · 0.85
trackPromiseFunction · 0.85
emitInitScriptFunction · 0.85
nextTickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…