On Sun, Feb 26, 2017 at 2:51 PM, Codefined <codefi...@debenclipper.com> wrote:
> What I feel we need is some way of making an asynchronous function > "appear" to be synchronous. > That's what co-routines are. Best practices for co-routines is usually to have some sort of API to spawn them (like new Routine(somefunction)), to be able to switch to them (like someroutine.switch(funargs)) and to throw exceptions into them (like someroutine.throw(error)) as well as a way to obtain the currently used routine (like Routine.current).
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss