Node.js version 0.10 was released today and introduced setImmediate
. The API changes documentation suggests using it when doing recursive nextTick
calls.
From what MDN says it seems very similar to process.nextTick
.
When should I use nextTick
and when should I use setImmediate
?
from setImmediate vs. nextTick
No comments:
Post a Comment