In async, if I need to apply a asynchronousfunction to 1000 items, I can do that with:
async.mapLimit(items, 10, (item, callback) => { foo(item, callb
Using Array.prototype.splice
Array.prototype.splice
while (funcs.length) { await Promise.all( funcs.splice(0, 100).map(f => f()) ) }