Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on JavaScript Promise.all vs. Promise.allSettled.
> 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".
> 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".