InterviewSolution
Saved Bookmarks
| 1. |
Differentiate between process.nextTick() and setImmediate()? |
|
Answer» Both can be used to switch to an asynchronous mode of OPERATION by listener FUNCTIONS. In this process.nextTick() method adds the callback function to the START of the next event queue and setImmediate() method to place the function in the check phase of the next event queue. |
|