JavaScript 2025 · Promises and fetch

Wait for all promises, whatever happens

Get the outcome of every promise, including failures.

const results = await Promise.allSettled([a(), b(), c()]);

Official JavaScript 2025 documentation

More promises and fetch commands

All promises and fetch commands · JavaScript 2025 cheatsheet

Was this page helpful?