@@ -6,18 +6,30 @@ All of the timer functions are globals. You do not need to `require()`
66this module in order to use them.
77
88## clearImmediate(immediateObject)
9+ <!-- YAML
10+ added: v0.9.1
11+ -->
912
1013Stops an ` immediateObject ` , as created by [ ` setImmediate ` ] [ ] , from triggering.
1114
1215## clearInterval(intervalObject)
16+ <!-- YAML
17+ added: v0.0.1
18+ -->
1319
1420Stops an ` intervalObject ` , as created by [ ` setInterval ` ] [ ] , from triggering.
1521
1622## clearTimeout(timeoutObject)
23+ <!-- YAML
24+ added: v0.0.1
25+ -->
1726
1827Prevents a ` timeoutObject ` , as created by [ ` setTimeout ` ] [ ] , from triggering.
1928
2029## ref()
30+ <!-- YAML
31+ added: v0.9.1
32+ -->
2133
2234If a timer was previously ` unref() ` d, then ` ref() ` can be called to explicitly
2335request the timer hold the program open. If the timer is already ` ref ` d calling
@@ -26,6 +38,9 @@ request the timer hold the program open. If the timer is already `ref`d calling
2638Returns the timer.
2739
2840## setImmediate(callback[ , arg] [ , ... ] )
41+ <!-- YAML
42+ added: v0.9.1
43+ -->
2944
3045Schedules "immediate" execution of ` callback ` after I/O events'
3146callbacks and before timers set by [ ` setTimeout ` ] [ ] and [ ` setInterval ` ] [ ] are
@@ -39,6 +54,9 @@ immediate is queued from inside an executing callback, that immediate won't fire
3954until the next event loop iteration.
4055
4156## setInterval(callback, delay[ , arg] [ , ... ] )
57+ <!-- YAML
58+ added: v0.0.1
59+ -->
4260
4361Schedules repeated execution of ` callback ` every ` delay ` milliseconds.
4462Returns a ` intervalObject ` for possible use with [ ` clearInterval ` ] [ ] . Additional
@@ -49,6 +67,9 @@ milliseconds (approximately 25 days) or less than 1, Node.js will use 1 as the
4967` delay ` .
5068
5169## setTimeout(callback, delay[ , arg] [ , ... ] )
70+ <!-- YAML
71+ added: v0.0.1
72+ -->
5273
5374Schedules execution of a one-time ` callback ` after ` delay ` milliseconds.
5475Returns a ` timeoutObject ` for possible use with [ ` clearTimeout ` ] [ ] . Additional
@@ -64,6 +85,9 @@ milliseconds (approximately 25 days) or less than 1, the timeout is executed
6485immediately, as if the ` delay ` was set to 1.
6586
6687## unref()
88+ <!-- YAML
89+ added: v0.9.1
90+ -->
6791
6892The opaque value returned by [ ` setTimeout ` ] [ ] and [ ` setInterval ` ] [ ] also has the
6993method ` timer.unref() ` which allows the creation of a timer that is active but
0 commit comments