Working with asynchronous operations is tedious. For the longest time we resorted to using callbacks which proved hard to get right especially when it came to state management and error propagation. We then elevated the abstraction, leveraging promises. However, those too came with their own set of problems—with different libraries having varying implementations, leaving us frustrated and looking for a sane way to grapple with asynchronous operations.
That changes now! JavaScript introduces promises in ES6 as a native API, elevating promises to be a first-class citizen in the language. In this ...