Lesson

Create an Async Generator and Loop Through Generated Promises with "For Await Of" Loops

Generators can yield promises which can work with the "for await of" loop syntax. This lesson shows how all the pieces fit together and explains why the async function syntax can be necessary for certain situations.

Duration
2 min
Access
Free
Transcript
Available

Generators can yield promises which can work with the "for await of" loop syntax. This lesson shows how all the pieces fit together and explains why the async function* syntax can be necessary for certain situations.