Posted On: May 05, 2021
setImmediate() method is used to invoke its callback function is placed in the check phase whereas setImmediate() method is called in the poll phase.
The process.nextTick() method is used to add the callback function at the start of the next event queue, it is called for the first time before the event loop is processed. process.nextTick(callback);
Never Miss an Articles from us.