@google-github-actions/actions-utils
@google-github-actions/actions-utils / parallel / 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.
F extends () => Promise<Awaited<R>>
R extends Promise<Awaited<R>>
() => Promise<R>[]
The tasks to invoke, must be async.
number
Optional configuration.
Promise<R[]>
Array of results in the order of args.