
Summary
The discussion centers around the challenges of handling asynchronous operations in JavaScript, specifically the use of `Promise.all` versus `Promise.allSettled`. The speaker highlights the limitations of `Promise.all`, which fails entirely if any single promise in the group is rejected, leading to lost results from other fulfilled promises. This behavior can complicate error handling and obscure the outcomes of multiple asynchronous operations.
In contrast, `Promise.allSettled` allows all promises to complete, regardless of whether they succeed or fail, providing a comprehensive overview of results. The speaker emphasizes that using `Promise.allSettled` encourages developers to consider both success and error cases, ultimately leading to clearer and more maintainable code. The conversation concludes with a call for listeners to share their experiences with `Promise.all`, questioning its utility compared to `Promise.allSettled`.
Show Notes
The Dangers Of Promise.all() Theo is a software dev nerd mostly known for full stack TypeScript stuff. Check out Theo and his stack at t3.gg ------------------------------
------------ Keywords: coding, bun, tech drama, programming, vercel, gpt, artificial intelligence Learn more about your ad choices. Visit megaphone.fm/adchoices
More from Theo - t3․gg
React's Billion Dollar Problem Theo is a software dev nerd mostly known for full stack TypeScript stuff. Check out Theo and his stack at t3.gg ---------------------------
I'm burnt out. Theo is a software dev nerd mostly known for full stack TypeScript stuff. Check out Theo and his stack at t3.gg ----------------
The Dangers Of Promise.all() Theo is a software dev nerd mostly known for full stack TypeScript stuff. Check out Theo and his stack at t3.gg -------------------------
Javascript in the future? Theo is a software dev nerd mostly known for full stack TypeScript stuff. Check out Theo and his stack at t3.gg ------------------------------
Bleeding Edge* Theo is a software dev nerd mostly known for full stack TypeScript stuff. Check out Theo and his stack at t3.gg -----------