Skip to content

mapAdaptive

mapAdaptive<T, R>(items, controller, fn): Promise<R[]>

Defined in: packages/core/src/utils/map-adaptive.ts:8

Like mapLimit, but the limit is read live from controller and every finished item is fed back to it. fn reports a timeout it handled itself with timedOut: true.

T

R

readonly T[]

AdaptiveConcurrency

(item, index) => Promise<{ timedOut?: boolean; value: R; }>

Promise<R[]>