Comment by hmsimha
4 years ago
Minor clarification, the latter example will only await until both have resolved *or* one rejects. To await the resolution of all promises, you should use the truly gamechanging `Promise.allSettled` , though you will have to transpile it if it's not supported by your target environments.
No comments yet
Contribute on Hacker News ↗