UNPKG

@altano/tiny-async-pool

Version:

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

13 lines (11 loc) 347 B
import { doWorkAndYield } from "./doWorkAndYield.js"; //#region src/doWork.ts /** * Process items from `iterable` in batches. */ async function doWork(concurrentCount, iterable, iteratorFn) { for await (const _result of doWorkAndYield(concurrentCount, iterable, iteratorFn)); } //#endregion export { doWork }; //# sourceMappingURL=doWork.js.map