JavaScript Promise combinators: `.all()`, `.race()`, `.allSettled()`

added by JavaScript Kicks
8/4/2019 3:00:23 PM

273 Views

In this blog post, we take a look at three static methods of Promise: Promise.all() and Promise.race() which JavaScript has had since ECMAScript 6 when Promises were added to the language. Promise.allSettled() which recently advanced to stage 4 and will therefore be part of ECMAScript 2020. Legend: (*) The parameters are all iterables.


0 comments