News for hackers. Stuff that matters.
Re:Idle Until Urgent by paulddraper on Thursday September 20, 2018 @12:59PM (#18033896)
Correct.

Though setImmediate is specific to IE/Edge.

    setTimeout(resolve, 0)
will allow any queued events/macrotasks to occur, and then immediately resolve.

    requireAnimationFrame(resolve)
will wait until the browser is ready to render another frame, and then resolve.

There are no comments on this comment yet.