Async/Await in JavaScript



In this video we’re going to take an in-depth look at Async/Await feature in JavaScript.

Repository:
https://github.com/eXtremeXR/Async-Await

First, we’re going to go through brief history of asynchronous programming in JavaScript and see how it transitioned from callbacks to promises to generators and to finally Async/Await.

Then we’re going to focus purely on Async/Await and we’ll go through a bunch of examples.

We’ll start off by learning how we can do sequential flow using Async/Await and we’ll also see how we need to be careful about error handling.

Next, we’ll move onto parallel execution. We’ll see how we can use Promise.all() function to be able to execute multiple promises in parallel. Again, we’ll see why we need to be careful about our error handling.

Last but not least, we’ll take a look at how we can do iterations with Async/Await. We’ll start off with for loop, then move onto forEach, for of loop is going to be next and finally we’ll wrap that section with while loop.

At the end, we’ll do a quick recap of the things we just went through.

source

Reply


Build A Site Info