4 ms·
Thanks! I think it wouldn’t await the whole loop though for (const item of iterable) async do { await item() } This would be equivalent to
by fregante 5y ago
Thanks! I think it wouldn’t await the whole loop though
for (const item of iterable)
async do {
await item()
}
This would be equivalent to
Promise.all(arr.map(async item => {
await item()
})
Notice the lack of await before Promise.all