Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/asynciter/asynciter.ts>AbstractAsyncIter#concurrentMap

Map, filter, reduce for AsyncIterables in Deno.
Latest
method AbstractAsyncIter.prototype.concurrentMap
import { AbstractAsyncIter } from "https://deno.land/x/asynciter@0.0.18/asynciter.ts";

Map the sequence from one type to another, concurrently.

Results are returned in order.

Parameters

mapFn: (item: T) => Promise<U>

The mapping function.

optional
concurrency: number

The maximum concurrency.

Returns

An iterable of mapped values.