MCPcopy
hub / github.com/sindresorhus/p-queue / queueAbortHandler

Method queueAbortHandler

source/index.ts:548–554  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

546 const {signal} = options;
547
548 const queueAbortHandler = () => {
549 cleanupQueueAbortHandler();
550 removeQueuedTask();
551 reject(signal.reason);
552 this.#tryToStartAnother();
553 this.emit('next');
554 };
555
556 cleanupQueueAbortHandler = () => {
557 signal.removeEventListener('abort', queueAbortHandler);

Callers

nothing calls this directly

Calls 1

#tryToStartAnotherMethod · 0.95

Tested by

no test coverage detected