Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/proc/src/deps/asynciter.ts>AbstractAsyncIter#concurrentMap

A better way to work with processes in Deno.
Very Popular
Go to Latest
method AbstractAsyncIter.prototype.concurrentMap
import { AbstractAsyncIter } from "https://deno.land/x/proc@0.20.43/src/deps/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.