SpinTheMic
Pro

Explain it in 60 seconds

Promise.all, allSettled, race and any

Frontend Engineering · Async JavaScript and the Browser · Intermediate

What are the differences between Promise.all, Promise.allSettled, Promise.race and Promise.any?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • all: all succeed or first rejection.
  • allSettled: wait for all, report each result.
  • race: first to settle (fulfil or reject).
  • any: first fulfilment; rejects if all fail.
  • Use cases: parallel loads, timeouts, fallbacks.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics