@@ -50,19 +50,23 @@ console.log(__filename);
50
50
51
51
` __filename ` isn't actually a global but rather local to each module.
52
52
53
- ## clearInterval(t )
53
+ ## clearImmediate(immediateObject )
54
54
55
- Stop a timer that was previously created with [ ` setInterval() ` ] [ ] . The callback
56
- will not execute.
55
+ <!-- type=global-->
56
+
57
+ [ ` clearImmediate ` ] is described in the [ timers] [ ] section.
58
+
59
+ ## clearInterval(intervalObject)
57
60
58
61
<!-- type=global-->
59
62
60
- The timer functions are global variables. See the [ timers] [ ] section.
63
+ [ ` clearInterval ` ] is described in the [ timers] [ ] section.
61
64
62
- ## clearTimeout(t)
65
+ ## clearTimeout(timeoutObject)
66
+
67
+ <!-- type=global-->
63
68
64
- Stop a timer that was previously created with [ ` setTimeout() ` ] [ ] . The callback will
65
- not execute.
69
+ [ ` clearTimeout ` ] is described in the [ timers] [ ] section.
66
70
67
71
## console
68
72
@@ -162,34 +166,33 @@ left untouched.
162
166
Use the internal ` require() ` machinery to look up the location of a module,
163
167
but rather than loading the module, just return the resolved filename.
164
168
165
- ## setInterval(cb, ms )
169
+ ## setImmediate(callback [ , arg ] [ , ... ] )
166
170
167
- Run callback ` cb ` repeatedly every ` ms ` milliseconds. Note that the actual
168
- interval may vary, depending on external factors like OS timer granularity and
169
- system load. It's never less than ` ms ` but it may be longer .
171
+ <!-- type=global -->
172
+
173
+ [ ` setImmediate ` ] is described in the [ timers ] [ ] section .
170
174
171
- The interval must be in the range of 1-2,147,483,647 inclusive. If the value is
172
- outside that range, it's changed to 1 millisecond. Broadly speaking, a timer
173
- cannot span more than 24.8 days.
175
+ ## setInterval(callback, delay[ , arg] [ , ... ] )
174
176
175
- Returns an opaque value that represents the timer.
177
+ <!-- type=global -->
176
178
177
- ## setTimeout(cb, ms)
179
+ [ ` setInterval ` ] is described in the [ timers ] [ ] section.
178
180
179
- Run callback ` cb ` after * at least* ` ms ` milliseconds. The actual delay depends
180
- on external factors like OS timer granularity and system load.
181
+ ## setTimeout(callback, delay[ , arg] [ , ... ] )
181
182
182
- The timeout must be in the range of 1-2,147,483,647 inclusive. If the value is
183
- outside that range, it's changed to 1 millisecond. Broadly speaking, a timer
184
- cannot span more than 24.8 days.
183
+ <!-- type=global -->
185
184
186
- Returns an opaque value that represents the timer .
185
+ [ ` setTimeout ` ] is described in the [ timers ] [ ] section .
187
186
188
187
[ `console` ] : console.html
189
188
[ `process` object ] : process.html#process_process
190
- [ `setInterval()` ] : #globals_setinterval_cb_ms
191
- [ `setTimeout()` ] : #globals_settimeout_cb_ms
192
189
[ buffer section ] : buffer.html
193
190
[ module system documentation ] : modules.html
194
191
[ Modules ] : modules.html#modules_modules
195
192
[ timers ] : timers.html
193
+ [ `clearImmediate` ] : timers.html#timers_clearimmediate_immediateobject
194
+ [ `clearInterval` ] : timers.html#timers_clearinterval_intervalobject
195
+ [ `clearTimeout` ] : timers.html#timers_cleartimeout_timeoutobject
196
+ [ `setImmediate` ] : timers.html#timers_setimmediate_callback_arg
197
+ [ `setInterval` ] : timers.html#timers_setinterval_callback_delay_arg
198
+ [ `setTimeout` ] : timers.html#timers_settimeout_callback_delay_arg
0 commit comments