import { LazyAsync } from "https://deno.land/x/better_iterators@v1.0.2/mod.ts";
Constructors
new
private
LazyAsync(iter: AsyncIterable<T>)Methods
Like map, but performs up to max
operations in parallel.
Note: This function will ensure that the order of outputs is the same as the order of the inputs they were mapped from. This can introduce head-of-line blocking, which can slow performance. If you don't need this, use mapParUnordered instead.
mapParUnordered<Out>(max: number, transform: Transform<T, Promise<Out>>): LazyAsync<Out>
A version of mapPar that does not enforce ordering, so doesn't suffer from head-of-line blocking.
[Symbol.asyncIterator](): AsyncIterator<T>