Urgent.News

What's breaking now, across thousands of outlets.

More in Tech

JavaScript Promises: All, AllSettled, Any, Race, and Concurrency Patterns

Promises are central to modern JavaScript, but most developers use only the basics. Firefox fully implements the Promise specification and the full Promise static API.

  • Promise.all waits for all promises to resolve, returning an array of results.
  • Promise.allSettled provides status and value/reason for each settled promise.
  • Promise.mapWithConcurrency limits concurrent async operations to a specified concurrency level.

More from Friday 16 October →