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

Method removeQueuedTask

source/index.ts:535–542  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected