Works with
•JSR Score70%•It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun




Published2 years ago (0.215.0)
Functions
f
pooledMap<T, R>(): AsyncIterableIterator<R>
poolLimit: number,
array: Iterable<T> | AsyncIterable<T>,
iteratorFn: (data: T) => Promise<R>
pooledMap transforms values from an (async) iterable into another async iterable. The transforms are done concurrently, with a max concurrency defined by the poolLimit.
Variables
v
ERROR_WHILE_MAPPING_MESSAGE: "Threw while mapping."
Error message emitted from the thrown error while mapping.