Is this an ES6 generator function?