Exhausts both the macro-task queue (i.e., tasks queued by setTimeout(), setInterval() and setImmediate()) and the micro-task queue (i.e., tasks in Node.js scheduled with process.nextTick()).
setTimeout()
setInterval()
setImmediate()
process.nextTick()
Exhausts both the macro-task queue (i.e., tasks queued by
setTimeout()
,setInterval()
andsetImmediate()
) and the micro-task queue (i.e., tasks in Node.js scheduled withprocess.nextTick()
).