News for hackers. Stuff that matters.
Re:JavaScript Promise.all vs. Promise.allSettled by jannes on Monday May 18, 2020 @05:03PM (#23228340)
The author seems to be a bit confused about the difference between "throwing" and "rejecting".

> Promise.allSettled can never throw

Of course not. And Promise.all neither. Promises don't throw, they reject.

async/await is syntactic sugar on top of that, which can make it look similar to throwing, but you will never actually "throw".

Re:JavaScript Promise.all vs. Promise.allSettled by k3nt0456 on Monday May 18, 2020 @06:53PM (#23229328)
Author's point is that Promise.allSettled never rejects