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

Function hasHooks

lib/internal/async_hooks.js:479–481  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

477}
478
479function hasHooks(key) {
480 return async_hook_fields[key] > 0;
481}
482
483function enabledHooksExist() {
484 return active_hooks.array.length > 0;

Callers 11

callbackTrampolineFunction · 0.85
promiseAfterHookFunction · 0.85
initHooksExistFunction · 0.85
afterHooksExistFunction · 0.85
destroyHooksExistFunction · 0.85
promiseResolveHooksExistFunction · 0.85
emitInitScriptFunction · 0.85
emitBeforeScriptFunction · 0.85
emitAfterScriptFunction · 0.85
emitDestroyScriptFunction · 0.85
hasAsyncIdStackFunction · 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…