Promise.all vs Promise.allSettled vs Promise.race in JavaScript: Differences and When to Use Each (Tested Examples)
Promise.all, allSettled and race all wait on several promises, but they disagree on failure and on what "done" means. Here are the real differences, with timings from Node.js 24.22.1, plus when to reach for Promise.any.