Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 92dd882

Browse filesBrowse files
TrottMylesBorins
authored andcommitted
doc,domain: use code markup/markdown in headers
Backport-PR-URL: #31108 PR-URL: #31086 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 1d8b45f commit 92dd882
Copy full SHA for 92dd882

File tree

Expand file treeCollapse file tree

1 file changed

+11
-11
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-11
lines changed
Open diff view settings
Collapse file

‎doc/api/domain.md‎

Copy file name to clipboardExpand all lines: doc/api/domain.md
+11-11Lines changed: 11 additions & 11 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function handleRequest(req, res) {
184184
}
185185
```
186186

187-
## Additions to Error objects
187+
## Additions to `Error` objects
188188

189189
<!-- type=misc -->
190190

@@ -267,11 +267,11 @@ serverDomain.run(() => {
267267
});
268268
```
269269

270-
## domain.create()
270+
## `domain.create()`
271271

272272
* Returns: {Domain}
273273

274-
## Class: Domain
274+
## Class: `Domain`
275275

276276
* Extends: {EventEmitter}
277277

@@ -280,14 +280,14 @@ uncaught exceptions to the active `Domain` object.
280280

281281
To handle the errors that it catches, listen to its `'error'` event.
282282

283-
### domain.members
283+
### `domain.members`
284284

285285
* {Array}
286286

287287
An array of timers and event emitters that have been explicitly added
288288
to the domain.
289289

290-
### domain.add(emitter)
290+
### `domain.add(emitter)`
291291

292292
* `emitter` {EventEmitter|Timer} emitter or timer to be added to the domain
293293

@@ -303,7 +303,7 @@ the domain `'error'` handler.
303303
If the Timer or `EventEmitter` was already bound to a domain, it is removed
304304
from that one, and bound to this one instead.
305305

306-
### domain.bind(callback)
306+
### `domain.bind(callback)`
307307

308308
* `callback` {Function} The callback function
309309
* Returns: {Function} The bound function
@@ -328,7 +328,7 @@ d.on('error', (er) => {
328328
});
329329
```
330330

331-
### domain.enter()
331+
### `domain.enter()`
332332

333333
The `enter()` method is plumbing used by the `run()`, `bind()`, and
334334
`intercept()` methods to set the active domain. It sets `domain.active` and
@@ -341,7 +341,7 @@ Calling `enter()` changes only the active domain, and does not alter the domain
341341
itself. `enter()` and `exit()` can be called an arbitrary number of times on a
342342
single domain.
343343

344-
### domain.exit()
344+
### `domain.exit()`
345345

346346
The `exit()` method exits the current domain, popping it off the domain stack.
347347
Any time execution is going to switch to the context of a different chain of
@@ -356,7 +356,7 @@ Calling `exit()` changes only the active domain, and does not alter the domain
356356
itself. `enter()` and `exit()` can be called an arbitrary number of times on a
357357
single domain.
358358

359-
### domain.intercept(callback)
359+
### `domain.intercept(callback)`
360360

361361
* `callback` {Function} The callback function
362362
* Returns: {Function} The intercepted function
@@ -391,14 +391,14 @@ d.on('error', (er) => {
391391
});
392392
```
393393

394-
### domain.remove(emitter)
394+
### `domain.remove(emitter)`
395395

396396
* `emitter` {EventEmitter|Timer} emitter or timer to be removed from the domain
397397

398398
The opposite of [`domain.add(emitter)`][]. Removes domain handling from the
399399
specified emitter.
400400

401-
### domain.run(fn\[, ...args\])
401+
### `domain.run(fn[, ...args])`
402402

403403
* `fn` {Function}
404404
* `...args` {any}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.