MCPcopy 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
693function 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

abortableNextFunction · 0.85

Calls 1

rejectFunction · 0.70

Tested by

no test coverage detected