skip to content

Timers vs setImmediate

0 questions

setTimeout(0) lands in the timers phase and setImmediate in the check phase, so which one fires first depends on where you scheduled it. Interviewers use the classic main-module-versus-inside-an-I/O-callback puzzle to see whether you know the phase order rather than a memorized rule.

questions

no questions here yet

this part of the tree is still being written

>
0 questions in this topic or below it