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

Method onAbort

lib/internal/streams/iter/push.js:247–252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

245
246 if (signal) {
247 const onAbort = () => {
248 // Remove from queue so it doesn't occupy a slot
249 const idx = this.#pendingWrites.indexOf(entry);
250 if (idx !== -1) this.#pendingWrites.removeAt(idx);
251 reject(signal.reason ?? lazyDOMException('Aborted', 'AbortError'));
252 };
253
254 // Wrap resolve/reject to clean up signal listener
255 entry.resolve = function() {

Callers

nothing calls this directly

Calls 4

lazyDOMExceptionFunction · 0.85
rejectFunction · 0.70
indexOfMethod · 0.45
removeAtMethod · 0.45

Tested by

no test coverage detected