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

Method abort

lib/internal/abort_controller.js:565–567  ·  view source on GitHub ↗

* @param {any} [reason]

(reason = new DOMException('This operation was aborted', 'AbortError'))

Source from the content-addressed store, hash-verified

563 * @param {any} [reason]
564 */
565 abort(reason = new DOMException('This operation was aborted', 'AbortError')) {
566 abortSignal(this.#signal ??= new AbortSignal(kDontThrowSymbol), reason);
567 }
568
569 [customInspectSymbol](depth, options) {
570 return customInspect(this, {

Callers 15

portIsFreeFunction · 0.95
#toggleEnableTimersMethod · 0.95
reduceFunction · 0.95
createAsyncPipelineFunction · 0.95
postAbortFunction · 0.95
preAbortFunction · 0.95
tickAbortFunction · 0.95
testConstructorFunction · 0.95
testConstructorPostFunction · 0.95
testConstructorPostTickFunction · 0.95
testAbortMidCompressionFunction · 0.95
doReadAndCancelFunction · 0.95

Calls 1

abortSignalFunction · 0.85

Tested by

no test coverage detected