Re: setImmediate usage on the web

On 6/24/15 3:42 PM, Tobin Titus wrote:
> Ross, with regards to requestIdleCallback
> <https://docs.google.com/document/d/1ZgYOBi_39-N6AbjL99qesiDagaSTbpN0R6CrSVK8NE4/edit#heading=h.lobhanl56igp>,
> I’m happy to be corrected, but I feel like requestIdleCallback is
> setImmediate with an “best guess” at the idle time provided to the
> callback.

No, because they have very different behavior in terms of when the 
callback runs.  setImmediate callbacks can run even if there is other 
stuff the browser wants to do instead; requestIdleCallback callbacks 
won't run in that situation.

-Boris

Received on Wednesday, 24 June 2015 22:52:11 UTC