Symbol.asyncIterator support
Hello,
I am trying to implement ReadableStream.values async iterator function, but I can't seem to get it to work. I noticed that Symbol.asyncIterator is in the blacklist features for tests. So I have two questions:
-
Is there any plan to add
Symbol.asyncIteratorsupport? -
Is there a way to implement this without the goja's explicit support?
Thanks
Hi,
- Is there any plan to add
Symbol.asyncIteratorsupport?
Yes, but not in the near future I'm afraid.
- Is there a way to implement this without the goja's explicit support?
Not without a transpiler, you may try https://babeljs.io/docs/babel-plugin-transform-async-generator-functions
Yes, but not in the near future I'm afraid.
I wouldn't mind trying to tackle this myself; if you could give me a quick summary of the challenge; I would like to at least give it a try.