Re:What does `return function *(){…}` mean in JavaScript?
by masklinn on Thursday November 07, 2013 @05:37PM
(#6692948)
I'm not sure what you're looking for exactly. The generators proposal defines the `send` method[0] (as well as `throw`) and its semantics. They're not "full" coroutines as they can't yield to an arbitrary coroutine (unless a trampoline is used), only to their parent/caller.
[0] http://wiki.ecmascript.org/doku.php?id=harmony:generators#me...