4 ms·
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
by jannes 6y ago
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".
- k3nt0456 6y agoAuthor's point is that Promise.allSettled never rejects