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

Function onAbort

lib/internal/streams/iter/transform.js:408–416  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

406 // Abort handler: reject any in-flight threadpool operation so the
407 // generator doesn't block waiting for compression to finish.
408 const onAbort = () => {
409 const reject = rejectWrite;
410 resolveWrite = undefined;
411 rejectWrite = undefined;
412 if (reject) {
413 reject(signal.reason ??
414 lazyDOMException('The operation was aborted', 'AbortError'));
415 }
416 };
417 signal.addEventListener('abort', onAbort, { __proto__: null, once: true });
418
419 // Dispatch input to the threadpool and return a promise.

Callers

nothing calls this directly

Calls 2

lazyDOMExceptionFunction · 0.85
rejectFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…