Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ getOnAbort
Function
getOnAbort
lib/internal/streams/iter/pull.js:693–695 ·
view source on GitHub ↗
(reject, signal)
Source
from the content-addressed store, hash-verified
691
}
692
693
function
getOnAbort(reject, signal) {
694
return
() => reject(signal.reason);
695
}
696
697
/**
698
* Read one item from an
async
iterator, rejecting early
if
the signal aborts.
Callers
1
abortableNext
Function · 0.85
Calls
1
reject
Function · 0.70
Tested by
no test coverage detected