Guest User

Untitled

a guest
Jul 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. What is the difference between process.nextTick() and setImmediate() ?
  2.  
  3. The difference between process.nextTick() and setImmediate() is that process.nextTick() defers the execution of an action until the next pass around the event loop
  4. or it simply calls the callback function once the ongoing execution of the event loop is finished whereas setImmediate() executes a callback on the next cycle of the event loop
  5. and it gives back to the event loop for executing any I/O operations.
Add Comment
Please, Sign In to add comment