Function: mapWithConcurrency()
function mapWithConcurrency<T, R>(args: {
concurrency: number;
items: readonly T[];
task: (item: T) => Promisable<R>;
}): Promise<R[]>;
Defined in: electron/services/sync/syncEngineUtils.ts:46
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) => Promisable<R>
Returns
Promise<R[]>
Remarks
Kept on this module's public surface for existing sync callers while the implementation lives in the neutral Electron utility layer.