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

x/asynciter/mod.ts>AsyncIter#concurrentMap

Map, filter, reduce for AsyncIterables in Deno.
Go to Latest
method AsyncIter.prototype.concurrentMap
import { AsyncIter } from "https://deno.land/x/asynciter@0.0.15/mod.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.