Re: [Efficient Script Yielding] - Clamping

On Sat, 2 Jul 2011, Kyle Simpson wrote:
>
> Would it be possible to resolve these issues by specifying that if 
> setImmediate() is called raw (that is, not from inside a timer handler), 
> then it basically has no clamping and is ASAP, but if it's called from 
> inside a timer handler (setTimeout, setInterval, setImmediate, etc), 
> then it's ok to clamp it?

How would this differ from setTimeout(..., 0) ?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Saturday, 2 July 2011 17:25:57 UTC