A quick look at async/await

If you’re working with JavaScript, you have to deal with asynchronous operations. Long time ago we did this by using callback functions. Nowadays we’re using promises to make our code more readable. Additionally we get a pretty good tool to handle asynchronous program flow with promises. If your application is a bit more complex and there are multiple asynchronous workflows in your application, your code is likely to get messy over time. You will implement multiple callback functions to handle success and error cases and stack them all together to build your application. To make your life easier ECMAScript defines a new feature called async functions.

Continue reading “A quick look at async/await”