Advances all timers by msToRun milliseconds. All pending macro-tasks that have been queued by setTimeout(), setInterval() and setImmediate(), and would be executed within this time frame will be executed.
msToRun
setTimeout()
setInterval()
setImmediate()
Advances all timers by
msToRun
milliseconds. All pending macro-tasks that have been queued bysetTimeout()
,setInterval()
andsetImmediate()
, and would be executed within this time frame will be executed.