UNPKG

axax

Version:

A library of async iterator extensions for JavaScript including ```map```, ```reduce```, ```filter```, ```flatMap```, ```pipe``` and [more](https://github.com/jamiemccrindle/axax/blob/master/docs/API.md#functions).

5 lines (4 loc) 235 B
/** * Runs a mapping function over an asynchronous iterable */ export declare function concurrentMap<TFrom, TTo>(mapper: (t: TFrom) => Promise<TTo>, concurrency: number): (source: AsyncIterable<TFrom>) => AsyncIterableIterator<TTo>;