Choosing JavaScript Promise Combinators: all, allSettled, any, and race
JavaScript provides several Promise combinators that look similar but encode very different failure policies. Choosing between Promise.all, Promise.allSettled, Promise.any, and Promise.race is less about syntax and more about defining what “success” means for a group of asynchronous operations.
The important question is not “which one runs in parallel?” Promises usually start when you create them. The combinator decides how to observe their outcomes.
Promise.all: every result is required Use Promise.all when the operation is successful only if every input fulfills.