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

Function promiseBeforeHook

lib/internal/async_hooks.js:347–352  ·  view source on GitHub ↗
(promise)

Source from the content-addressed store, hash-verified

345}
346
347function promiseBeforeHook(promise) {
348 trackPromise(promise);
349 const asyncId = promise[async_id_symbol];
350 const triggerId = promise[trigger_async_id_symbol];
351 emitBeforeScript(asyncId, triggerId, promise, true);
352}
353
354function promiseAfterHook(promise) {
355 trackPromise(promise);

Callers

nothing calls this directly

Calls 2

trackPromiseFunction · 0.85
emitBeforeScriptFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…