MCPcopy Create free account
hub / github.com/sindresorhus/p-queue / removeQueuedTask

Method removeQueuedTask

source/index.ts:534–541  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

532 this.#queue.enqueue(run, options);
533
534 const removeQueuedTask = () => {
535 if (this.#queue instanceof PriorityQueue) {
536 this.#queue.remove(run);
537 return;
538 }
539
540 this.#queue.remove?.(options.id!); // Intentionally best-effort: queued abort removal is only supported for queue classes that implement `.remove()`.
541 };
542
543 // Handle abort while task is waiting in the queue
544 if (options.signal) {

Callers

nothing calls this directly

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected