Bringing setTimeout to ECMAScript
Wes Garland
wes at page.ca
Fri Mar 18 09:25:29 PDT 2011
Right: the barrier to setTimeout functionality is that ECMAscript does not
define a concurrency model.
If we can define a concurrency model, then we can build setTimeout.
Two things off the top of my head to consider:
- timer granularity
- forbidding eval-like syntax
OTOH, if we have an event-loop system with conditionals, we might not need
setTimeout because it would be trivial to build from primitives. But it
might be a handy interface if ES starts to go toward the "batteries
included" model.
Wes
--
Wesley W. Garland
Director, Product Development
PageMail, Inc.
+1 613 542 2787 x 102
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110318/903c0d0c/attachment.html>
More information about the es-discuss
mailing list