DEV Community

Discussion on: setTimeout vs setImmediate vs process.nextTick

Collapse
logicmason profile image
Mark Author

The output is...

[Running] node "/Users/logicmason/timeouts.js"
nextTick
nextTick
nextTick
timeout
timeout
timeout
immediate
immediate
immediate

[Done] exited with code=0 in 0.355 seconds