From ES2017, there is a better way of consuming promises in JavaScript i.e. by using async and await. In this lecture you will learn what is async and await and what is there use in a JavaScript program.
Пікірлер: 7
@LearningMirror3 жыл бұрын
Really worth watching... You will surely groww very soon. Keep educating us.
@procademy3 жыл бұрын
Thanks a ton
@russelldriver63942 жыл бұрын
You mention that an async function is not run in the main thread but run in the background. I don't think that is 100% accurate. The function does get invoked and pushed onto the callstack in the main thread, however when that code execution comes across the await keyword that function is moved off the main thread to allow the next code execution to contiue and once all other code is executed then the async function is moved back onto the main thread.
@procademy2 жыл бұрын
You are right. That's what happens. i will have to update this lecture for missing that point. Thanks for pointing this out :)
@borisaleksandrovskiy19623 жыл бұрын
Thanx!
@jaymishra17813 жыл бұрын
loved it 😁
@procademy3 жыл бұрын
Please share this channel with others if you like my videos...🤝🤝