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

Method addAll

source/index.ts:585–590  ·  view source on GitHub ↗
(
		functions: ReadonlyArray<Task<TaskResultsType>>,
		options?: Partial<EnqueueOptionsType>,
	)

Source from the content-addressed store, hash-verified

583 options?: Partial<EnqueueOptionsType>,
584 ): Promise<TaskResultsType[]>;
585 async addAll<TaskResultsType>(
586 functions: ReadonlyArray<Task<TaskResultsType>>,
587 options?: Partial<EnqueueOptionsType>,
588 ): Promise<TaskResultsType[]> {
589 return Promise.all(functions.map(async function_ => this.add(function_, options)));
590 }
591
592 /**
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.)

Callers 2

advanced.tsFile · 0.80
basic.tsFile · 0.80

Calls 1

addMethod · 0.95

Tested by

no test coverage detected