Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
68
const
settledAll = makeRunHook(hooks.settled);
69
70
function
maybeFastPath(list, runAll) {
71
return
list.length > 1 ? runAll : list[0];
72
}
73
74
function
update() {
75
const
init = maybeFastPath(hooks.init, initAll);
Callers
1
update
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected