by ablu · 4y ago · 0 comments
await Promise.all(collection.map(thing => some_async_function(thing)));
for thing of collection { await some_async_function(thing); }