elixir-nodejs icon indicating copy to clipboard operation
elixir-nodejs copied to clipboard

Generators

Open madshargreave opened this issue 3 years ago • 1 comments

I'm curious as to whether it's possible, and what it would take to support ES6 (async) generators.

I imagine we could support them through the stream APIs

madshargreave avatar Aug 18 '20 06:08 madshargreave

This would depend on how you expect the generators to work. Currently, we expect a single return value at the end of execution. If we wanted to actually use generators to the full extent this will need to have its own API and handle things a lot differently and there's a wide range of scenarios to consider as well.

oohnoitz avatar Aug 19 '20 23:08 oohnoitz