limited-map
Async map function with limited concurrency for JavaScript. This is a replacement for Promise.all(items.map(asyncCallback))
. For example, this is useful if you have an API that you don't want to overload with your request flood.
Example
const limitedMap = ; { const docs = await ; return docs;}
API
limitedMap<T U> items: Array<T> Promise<U> concurrency: number: Promise<Array<U>>
License
MIT