Generators in JavaScript ES6

Generators are functions which can be exited and later re-entered. Their context (variable bindings) will be saved across re-entrances. Read more

Similar