setImmediate should allow the UA to delay the event

Both setTimeout and setInterval have this step in their processing:

  * Optionally, wait a further user-agent defined length of time.

I believe it would be a good idea to have this for setImmediate as well. 
  In Gecko's implementation, we are considering introducing a delay into 
setImmediate invocations in background tabs, minimized windows, etc. 
Not as much of a delay as setTimeout/setInterval are getting, but some 
delay.

Note that as long as you only examine setImmediate this is not black-box 
distinguishable from throttling the entire event queue for the relevant 
browsing context.  You can only tell the difference by comparing order 
of setImmediate invocation with other events in the event queue.

-Boris

Received on Thursday, 30 June 2011 07:26:39 UTC