Chapter 12. Iterators and Generators
Topics in This Chapter
12.7 Generators and Asynchronous Processing
In this short chapter, you will learn how to implement iterators that can be used in the for of
loop and array spreads. You will be able to work with iterators in your own code.
Implementing an iterator can be a bit tedious, but generators greatly simplify this task. A generator is a function that can yield multiple ...
Get Modern JavaScript for the Impatient now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.