ES6
Introduction
Generators are processes that you can pause and resume. Generators are
defined with function*
.
Generator Kinds
Generator function declarations
Generator function expressions
Generator method definitions in object literals
Generator method definitions in class definitions
Examples
Iterables
Async Iterables
Asynchronous code
Also see