May 31, 2020 in Node.Js
Q:

Difference between setImmediate() vs setTimeout()

1 Answer

0 votes
May 31, 2020

setImmediate() and setTimeout() are similar, but behave in different ways depending on when they are called.

setImmediate() is designed to execute a script once the current poll (event loop) phase completes.

setTimeout() schedules a script to be run after a minimum threshold in ms has elapsed.

Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

+1 vote
May 31, 2020 in Node.Js
0 votes
May 31, 2020 in Node.Js
...