Bringing setTimeout to ECMAScript
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
Wesley W. Garland
Director, Product Development
+1 613 542 2787 x 102
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss