DEV Community

loading...

Discussion on: Understanding the Node.js event loop phases and how it executes the JavaScript code.

Collapse
kaqqao profile image
Bojan Tomic

Isn't it great how setImmediate is less immediate than nextTick which isn't executed in the next tick but in the current? ðŸĪŠ

Collapse
lunaticmonk profile image
Sumedh Nimkarde Author

Yes, it is indeed. It is also said that they should have been named the other way i.e setImmediate should have been named process.nextTick and vice versa.