Skip to content

Latest commit

 

History

History
44 lines (23 loc) · 862 Bytes

File metadata and controls

44 lines (23 loc) · 862 Bytes

@google-github-actions/actions-utils


@google-github-actions/actions-utils / parallel / inParallel

Function: inParallel()

inParallel<F, R>(tasks, concurrency?): Promise<R[]>

Defined in: parallel.ts:30

inParallel executes the given function in parallel, up to max concurrency. There are no guarantees on the order in which promises start.

Type Parameters

F

F extends () => Promise<Awaited<R>>

R

R extends Promise<Awaited<R>>

Parameters

tasks

() => Promise<R>[]

The tasks to invoke, must be async.

concurrency?

number

Optional configuration.

Returns

Promise<R[]>

Array of results in the order of args.