Iterate Asynchronously with the for-await-of Loop

Share this video with your friends

Send Tweet

We finish the course by looking at asynchronous iterators, a generic data access protocol for asynchronous data sources. This asynchronous iteration scheme is built on top of a new for-await-of loop and async generator functions.

Ben Diuguid
Ben Diuguid
~ 8 years ago

Awesome and concise course! I wanted to see what your babel configuration was and maybe the repo is not public? But the link gives me a 404.

Marius Schulz
Marius Schulz(instructor)
~ 8 years ago

The repo link should work now, thanks for the hint! I'm using TypeScript rather than Babel in this lesson; here's the tsconfig.json.

Marius Schulz
Marius Schulz(instructor)
~ 8 years ago

Glad you liked them, thanks for watching!

Matteo Hertel
Matteo Hertel
~ 8 years ago

I noticed that after the refactor of the for await loop you still ran the async.js in the dist folder, the one that has been transpiled, was it intended behaviour (you ran the transpiler behind the scene) or not? thanks for the amazing course, I loved every bit of it!

Marius Schulz
Marius Schulz(instructor)
~ 8 years ago

Exactly, I was running the TypeScript compiler in watch mode in the background. While recording, I actually had to check that I was running the updated code by prepending some other log statement. :)

Bart
Bart
~ 7 years ago

by the end you forgot to run build again, instead you run existing version from the dist. I guess it wont change the final result ;)

software
software
~ 6 years ago

by the end you forgot to run build again, instead you run existing version from the dist. I guess it wont change the final result ;)

+1

~ 6 years ago

Hey Marius, Marius here ;) So it is indeed a little confusing if the main() is used or the already transpiled one. I guess you've answered it above but it should be made clear somehow in the video. can't you add an overlay text comment or something?