# setImmediate The `setImmediate` function delays the execution of a function to be called after the current event loops finish all their execution. It's very similar to calling `setTimeout` with 0 ms delay. Visit the following resources to learn more: - [Understanding setImmediate](https://developer.mozilla.org/en-US/docs/Web/API/Window/setImmediate) - [Understanding setImmediate](https://nodejs.org/en/learn/asynchronous-work/understanding-setimmediate)