On this page
Promise
Prev: Array | Up: builtins | Next: Map
Rel: Promise & Async Guide, Prototype Chain & new Flow
Ref: MDN Web Docs — Promise
Tags: #public #web #javascript #builtins #promise #index
Overview
Represents the eventual fulfillment or rejection of an asynchronous operation.
Core (#tier/core)
- Promise.all — Fulfills with an array of all values when every promise fulfills; rejects immediately on the first rejection.
- Promise.allSettled — Waits for all promises to settle and resolves with
{ status: 'fulfilled'|'rejected', value|reason }objects. - Promise.resolve — Returns a Promise resolved with
value(or returnsvalueitself if already a Promise).
Standard (#tier/standard)
- Promise.race — Settles (fulfills or rejects) with the first promise in
iterablethat settles. - Promise.any — Fulfills with the first fulfilled promise; rejects with
AggregateErroronly if all reject. - Promise.withResolvers — Returns
{ promise, resolve, reject }directly without wrapping logic insidenew Promise(...)(ES2024).
Linked from
- tuts/javascript/builtins
- tuts/javascript/builtins/Array
- tuts/javascript/builtins/Array/splice
- tuts/javascript/builtins/Map
- tuts/javascript/builtins/Promise/all
- tuts/javascript/builtins/Promise/allSettled
- tuts/javascript/builtins/Promise/any
- tuts/javascript/builtins/Promise/race
- tuts/javascript/builtins/Promise/resolve
- tuts/javascript/builtins/Promise/withResolvers
Related notes
- tuts/javascript/builtins Linked here; links to this page; shared tags: #builtins, #index, #javascript, #web
- tuts/javascript/builtins/Array Linked here; links to this page; shared tags: #builtins, #index, #javascript, #web
- tuts/javascript/builtins/Map Linked here; links to this page; shared tags: #builtins, #index, #javascript, #web
- tuts/javascript/builtins/Promise/all Linked here; links to this page; shared tags: #builtins, #javascript, #promise, #web
- tuts/javascript/builtins/Promise/allSettled Linked here; links to this page; shared tags: #builtins, #javascript, #promise, #web
- tuts/javascript/builtins/Promise/any Linked here; links to this page; shared tags: #builtins, #javascript, #promise, #web
- tuts/javascript/builtins/Promise/race Linked here; links to this page; shared tags: #builtins, #javascript, #promise, #web
- tuts/javascript/builtins/Promise/resolve Linked here; links to this page; shared tags: #builtins, #javascript, #promise, #web
- tuts/javascript/builtins/Promise/withResolvers Linked here; links to this page; shared tags: #builtins, #javascript, #promise, #web
- tuts/javascript/builtins/Array/splice links to this page; shared tags: #builtins, #javascript, #web