@@ -12,7 +12,7 @@ The timer functions within Node.js implement a similar API as the timers API
12
12
provided by Web Browsers but use a different internal implementation that is
13
13
built around the Node.js [ Event Loop] [ ] .
14
14
15
- ## Class: Immediate
15
+ ## Class: ` Immediate `
16
16
17
17
This object is created internally and is returned from [ ` setImmediate() ` ] [ ] . It
18
18
can be passed to [ ` clearImmediate() ` ] [ ] in order to cancel the scheduled
@@ -23,7 +23,7 @@ running as long as the immediate is active. The `Immediate` object returned by
23
23
[ ` setImmediate() ` ] [ ] exports both ` immediate.ref() ` and ` immediate.unref() `
24
24
functions that can be used to control this default behavior.
25
25
26
- ### immediate.hasRef()
26
+ ### ` immediate.hasRef() `
27
27
<!-- YAML
28
28
added: v11.0.0
29
29
-->
@@ -32,7 +32,7 @@ added: v11.0.0
32
32
33
33
If true, the ` Immediate ` object will keep the Node.js event loop active.
34
34
35
- ### immediate.ref()
35
+ ### ` immediate.ref() `
36
36
<!-- YAML
37
37
added: v9.7.0
38
38
-->
@@ -46,7 +46,7 @@ effect.
46
46
By default, all ` Immediate ` objects are "ref'ed", making it normally unnecessary
47
47
to call ` immediate.ref() ` unless ` immediate.unref() ` had been called previously.
48
48
49
- ### immediate.unref()
49
+ ### ` immediate.unref() `
50
50
<!-- YAML
51
51
added: v9.7.0
52
52
-->
@@ -58,7 +58,7 @@ loop to remain active. If there is no other activity keeping the event loop
58
58
running, the process may exit before the ` Immediate ` object's callback is
59
59
invoked. Calling ` immediate.unref() ` multiple times will have no effect.
60
60
61
- ## Class: Timeout
61
+ ## Class: ` Timeout `
62
62
63
63
This object is created internally and is returned from [ ` setTimeout() ` ] [ ] and
64
64
[ ` setInterval() ` ] [ ] . It can be passed to either [ ` clearTimeout() ` ] [ ] or
@@ -70,7 +70,7 @@ timer is active. Each of the `Timeout` objects returned by these functions
70
70
export both ` timeout.ref() ` and ` timeout.unref() ` functions that can be used to
71
71
control this default behavior.
72
72
73
- ### timeout.hasRef()
73
+ ### ` timeout.hasRef() `
74
74
<!-- YAML
75
75
added: v11.0.0
76
76
-->
@@ -79,7 +79,7 @@ added: v11.0.0
79
79
80
80
If true, the ` Timeout ` object will keep the Node.js event loop active.
81
81
82
- ### timeout.ref()
82
+ ### ` timeout.ref() `
83
83
<!-- YAML
84
84
added: v0.9.1
85
85
-->
@@ -92,7 +92,7 @@ When called, requests that the Node.js event loop *not* exit so long as the
92
92
By default, all ` Timeout ` objects are "ref'ed", making it normally unnecessary
93
93
to call ` timeout.ref() ` unless ` timeout.unref() ` had been called previously.
94
94
95
- ### timeout.refresh()
95
+ ### ` timeout.refresh() `
96
96
<!-- YAML
97
97
added: v10.2.0
98
98
-->
@@ -107,7 +107,7 @@ JavaScript object.
107
107
Using this on a timer that has already called its callback will reactivate the
108
108
timer.
109
109
110
- ### timeout.unref()
110
+ ### ` timeout.unref() `
111
111
<!-- YAML
112
112
added: v0.9.1
113
113
-->
@@ -130,7 +130,7 @@ a certain period of time. When a timer's function is called varies depending on
130
130
which method was used to create the timer and what other work the Node.js
131
131
event loop is doing.
132
132
133
- ### setImmediate(callback\ [ , ...args\] )
133
+ ### ` setImmediate(callback[, ...args]) `
134
134
<!-- YAML
135
135
added: v0.9.1
136
136
-->
@@ -172,7 +172,7 @@ async function timerExample() {
172
172
timerExample ();
173
173
```
174
174
175
- ### setInterval(callback, delay\ [ , ...args\] )
175
+ ### ` setInterval(callback, delay[, ...args]) `
176
176
<!-- YAML
177
177
added: v0.0.1
178
178
-->
@@ -190,7 +190,7 @@ set to `1`. Non-integer delays are truncated to an integer.
190
190
191
191
If ` callback ` is not a function, a [ ` TypeError ` ] [ ] will be thrown.
192
192
193
- ### setTimeout(callback, delay\ [ , ...args\] )
193
+ ### ` setTimeout(callback, delay[, ...args]) `
194
194
<!-- YAML
195
195
added: v0.0.1
196
196
-->
@@ -235,7 +235,7 @@ cancel the timer and prevent it from triggering.
235
235
It is not possible to cancel timers that were created using the promisified
236
236
variants of [ ` setImmediate() ` ] [ ] , [ ` setTimeout() ` ] [ ] .
237
237
238
- ### clearImmediate(immediate)
238
+ ### ` clearImmediate(immediate) `
239
239
<!-- YAML
240
240
added: v0.9.1
241
241
-->
@@ -245,7 +245,7 @@ added: v0.9.1
245
245
246
246
Cancels an ` Immediate ` object created by [ ` setImmediate() ` ] [ ] .
247
247
248
- ### clearInterval(timeout)
248
+ ### ` clearInterval(timeout) `
249
249
<!-- YAML
250
250
added: v0.0.1
251
251
-->
@@ -254,7 +254,7 @@ added: v0.0.1
254
254
255
255
Cancels a ` Timeout ` object created by [ ` setInterval() ` ] [ ] .
256
256
257
- ### clearTimeout(timeout)
257
+ ### ` clearTimeout(timeout) `
258
258
<!-- YAML
259
259
added: v0.0.1
260
260
-->
0 commit comments