This function will process async tasks in batches, limited by the bufferSize. Since it needs to have control over when promises start (and since promises are always hot) instead of promises you need to pass functions that return the promises.
an array of Promise factories (async functions)
(default 25) at most, this many tasks will be running at a time
the results of each promise in the order they resolved or rejected
This function will process async tasks in batches, limited by the bufferSize. Since it needs to have control over when promises start (and since promises are always hot) instead of promises you need to pass functions that return the promises.