Bringing setTimeout to ECMAScript

Boris Zbarsky bzbarsky at MIT.EDU
Fri Mar 18 21:42:18 PDT 2011

On 3/19/11 12:24 AM, Mark S. Miller wrote:
> Is this 4ms codified in spec language somewhere? I couldn't find it by
> casual searching. 
step 5 (though note also step 9, which is the part that makes 4ms a 
minimum delay, not a hard line).

Also note that the 4ms thing only applies to "nested" timeouts.

>      actualTimeout = max(requestedTimeout, 4)

This is the rule for nested timeouts, yes.


P.S.  If one draft spec is preferred over another one, the same text is 
and at

More information about the es-discuss mailing list