What is the difference between setimmediate() and settimeout()?



What is the difference between setimmediate() and settimeout()?..

Answer / Dhiresh Kumar

{"setimmediate": "In Node.js, 'setImmediate' schedules a callback to be executed in the next iteration of the event loop.","settimeout": "'setTimeout' schedules a callback to be executed after a specified delay, even if the node process is blocked."}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Node.js Interview Questions

How Grunt and Gulp deal with Task Automation?

1 Answers  


Is node js asynchronous by default?

1 Answers  


Explain the usage of a buffer class in node.js?

1 Answers  


How does promise and queue work?

1 Answers  


How Many Types Of Streams Are Present In Node?

1 Answers  


Explain node.js web application architecture?

1 Answers  


What is the difference between setimmediate() and settimeout()?

1 Answers  


What are the important events of net.Socket in Node.js?

1 Answers  


How to debug the code using Node.js Built-In debugger?

1 Answers  


Which is better node js or python?

1 Answers  


How to get started with node.js?

1 Answers  


What are the popular REPL commands in Node.js?

1 Answers  


Categories