I am trying to create async generator function in Node.js, but it seems to be impossible.
Version of my Node.js: 7.6.0.
My code:
async function* async_generator(){
for(let i = 0; i < 10; i++){
yield await call_to_async_func(i);
};
}
Error I got:
Does anyone knows what is the problem? Why I can't create async generator function while I can create generator function or async function Independently?
