Skip to main content

Function: mapWithConcurrency()

mapWithConcurrency<T, R>(args: { concurrency: number; items: readonly T[]; task: (item: T) => Promise<R>; }): Promise<R[]>

Defined in: electron/services/sync/syncEngineUtils.ts:98

Maps items with bounded concurrency while preserving input order.

Type Parameters

T

T

R

R

Parameters

args

concurrency

number

items

readonly T[]

task

(item: T) => Promise<R>

Returns

Promise<R[]>