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

Function maybeFastPath

lib/internal/promise_hooks.js:70–72  ·  view source on GitHub ↗
(list, runAll)

Source from the content-addressed store, hash-verified

68const settledAll = makeRunHook(hooks.settled);
69
70function maybeFastPath(list, runAll) {
71 return list.length > 1 ? runAll : list[0];
72}
73
74function update() {
75 const init = maybeFastPath(hooks.init, initAll);

Callers 1

updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected