UNPKG

@altano/tiny-async-pool

Version:

Run multiple promise-returning & async functions with limited concurrency using native ES9

11 lines (9 loc) 406 B
import { IterableItem } from "./doWorkAndYield.js"; //#region src/doWork.d.ts /** * Process items from `iterable` in batches. */ declare function doWork<TIn, TIterable extends Iterable<TIn>>(concurrentCount: number, iterable: TIterable, iteratorFn: (item: IterableItem<TIterable>, Iterable: TIterable) => Promise<void>): Promise<void>; //#endregion export { doWork }; //# sourceMappingURL=doWork.d.ts.map