| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a40b0cb commit 8bec8aa
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -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 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,7 +27,7 @@ Returns the timer. | |||
| 27 | 27 | ||
| 28 | 28 | ## setImmediate(callback[, arg][, ...]) | |
| 29 | 29 | ||
| 30 | - To schedule the "immediate" execution of `callback` after I/O events' | ||
| 30 | + Schedules "immediate" execution of `callback` after I/O events' | ||
| 31 | 31 | callbacks and before timers set by [`setTimeout`][] and [`setInterval`][] are | |
| 32 | 32 | triggered. Returns an `immediateObject` for possible use with | |
| 33 | 33 | [`clearImmediate`][]. Additional optional arguments may be passed to the | |
@@ -40,7 +40,7 @@ until the next event loop iteration. | |||
| 40 | 40 | ||
| 41 | 41 | ## setInterval(callback, delay[, arg][, ...]) | |
| 42 | 42 | ||
| 43 | - To schedule the repeated execution of `callback` every `delay` milliseconds. | ||
| 43 | + Schedules repeated execution of `callback` every `delay` milliseconds. | ||
| 44 | 44 | Returns a `intervalObject` for possible use with [`clearInterval`][]. Additional | |
| 45 | 45 | optional arguments may be passed to the callback. | |
| 46 | 46 | ||
@@ -50,7 +50,7 @@ milliseconds (approximately 25 days) or less than 1, Node.js will use 1 as the | |||
| 50 | 50 | ||
| 51 | 51 | ## setTimeout(callback, delay[, arg][, ...]) | |
| 52 | 52 | ||
| 53 | - To schedule execution of a one-time `callback` after `delay` milliseconds. | ||
| 53 | + Schedules execution of a one-time `callback` after `delay` milliseconds. | ||
| 54 | 54 | Returns a `timeoutObject` for possible use with [`clearTimeout`][]. Additional | |
| 55 | 55 | optional arguments may be passed to the callback. | |
| 56 | 56 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments