How can I catch exceptions from doAsyncThing without throwing an await in? Each run of doAsyncThing is idempotent so I just want all of the operations to happen "at the same time" & then wrap up the process. I realized even if I put a try/catch inside the map, it won't actually catch it there because it's not in same thread at that point.
const promises = entities.map(entity => {
return entity.doAsyncThing();
});
await Promise.all(promises);