1. 6
    Asynchronous Iteration using for-await-of
    2m 33s

Asynchronous Iteration using for-await-of

Share this video with your friends

Send Tweet

The for-await-of syntax is similar to the for-of iteration. The key difference is that it automatically awaits any promises generated by the iterator. This lesson covers how to consume async data sources easily with for-await-of.

for-await-of essentially allows you to use async/await in a generator function.

Basarat Ali Syedinstructor
~ 6 years ago

Indeed TypeScript can be used as a very transparent layer on JavaScript. That is one of the strengths of TypeScript 🌹

Basarat Ali Syedinstructor
~ 5 years ago

It is all TS files and typescript execution. TypeScript truly is just as simple as JS and shouldn’t need to be anything more if not required : https://basarat.gitbooks.io/typescript/content/docs/javascript/recap.html 🌹