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

Method start

source/index.ts:595–604  ·  view source on GitHub ↗

Start (or resume) executing enqueued tasks within concurrency limit. No need to call this if queue is not paused (via `options.autoStart = false` or by `.pause()` method.)

()

Source from the content-addressed store, hash-verified

593 Start (or resume) executing enqueued tasks within concurrency limit. No need to call this if queue is not paused (via `options.autoStart = false` or by `.pause()` method.)
594 */
595 start(): this {
596 if (!this.#isPaused) {
597 return this;
598 }
599
600 this.#isPaused = false;
601
602 this.#processQueue();
603 return this;
604 }
605
606 /**
607 Put queue execution on hold.

Callers 7

bench.tsFile · 0.80
advanced.tsFile · 0.80
basic.tsFile · 0.80
debug.tsFile · 0.80
startPauseCyclesFunction · 0.80
rate-limit.tsFile · 0.80
strict.tsFile · 0.80

Calls 1

#processQueueMethod · 0.95

Tested by

no test coverage detected