One-shot Delimited Continuations with Effect Handlers

Benjamin Gruenbaum benjamingr at gmail.com
Wed Mar 16 07:43:50 UTC 2016


> async functions only address the async use case and they're all scheduled
on a simple micro-task queue. We need fine grained control over scheduling.
Perhaps Zones can help a bit with that but that's just one of severals
concepts that need this.

Isn't the problem we actually need to solve here the fact we're not able to
control scheduling or context in async functions?
Other languages with async functions like Python and C# provide the means
to control the scheduling of async functions.

This is also indeed deeply related to zones since there is no inherent
reason the same doesn't apply to async things that are not promises (like
observables, async iterators and event emitters).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160316/6ea777f5/attachment.html>


More information about the es-discuss mailing list