JS: Promise (class)
(new in ECMAScript 2015)
Properties
- JS: Promise.all → waits for all to fulfill but rejects immediately on the first rejection.
- JS: Promise.allSettled → waits for all to settle (fulfill or reject).
- JS: Promise.race → settles with the first promise that settles (fulfill or reject).
- JS: Promise.any → settles with the first promise that fulfills (or rejects only if all reject).