Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

doc: add setImmediate execute timing description

  • Loading branch information...
commit 00e1bfd4db9b9efedb1ee44ba10365c943e4d355 1 parent 6bc47cd
@shigeki authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 doc/api/timers.markdown
7 doc/api/timers.markdown
@@ -49,9 +49,10 @@ request the timer hold the program open. If the timer is already `ref`d calling
## setImmediate(callback, [arg], [...])
-To schedule the "immediate" execution of `callback`. Returns an `immediateId`
-for possible use with `clearImmediate()`. Optionally you can also pass
-arguments to the callback.
+To schedule the "immediate" execution of `callback` after I/O events
+callbacks and before `setTimeout` and `setInterval` . Returns an
+`immediateId` for possible use with `clearImmediate()`. Optionally you
+can also pass arguments to the callback.
Immediates are queued in the order created, and are popped off the queue once
per loop iteration. This is different from `process.nextTick` which will
Please sign in to comment.
Something went wrong with that request. Please try again.