Skip to content

Commit 401cef7

Browse files
Shigeki Ohtsuisaacs
authored andcommitted
doc: add setImmediate execute timing description
1 parent cd37251 commit 401cef7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/api/timers.markdown

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ request the timer hold the program open. If the timer is already `ref`d calling
4949

5050
## setImmediate(callback, [arg], [...])
5151

52-
To schedule the "immediate" execution of `callback`. Returns an `immediateId`
53-
for possible use with `clearImmediate()`. Optionally you can also pass
54-
arguments to the callback.
52+
To schedule the "immediate" execution of `callback` after I/O events
53+
callbacks and before `setTimeout` and `setInterval` . Returns an
54+
`immediateId` for possible use with `clearImmediate()`. Optionally you
55+
can also pass arguments to the callback.
5556

5657
Immediates are queued in the order created, and are popped off the queue once
5758
per loop iteration. This is different from `process.nextTick` which will

0 commit comments

Comments
 (0)