[ES2015] Generators

Generators

Generators are functions that can be paused and resumed later. A generator can contain multiple yield statements. At each yield, the generator will pause.