| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -184,7 +184,7 @@ function handleRequest(req, res) { | |||
| 184 | 184 | } | |
| 185 | 185 | ``` | |
| 186 | 186 | ||
| 187 | - ## Additions to Error objects | ||
| 187 | + ## Additions to `Error` objects | ||
| 188 | 188 | ||
| 189 | 189 | <!-- type=misc --> | |
| 190 | 190 | ||
@@ -267,11 +267,11 @@ serverDomain.run(() => { | |||
| 267 | 267 | }); | |
| 268 | 268 | ``` | |
| 269 | 269 | ||
| 270 | - ## domain.create() | ||
| 270 | + ## `domain.create()` | ||
| 271 | 271 | ||
| 272 | 272 | * Returns: {Domain} | |
| 273 | 273 | ||
| 274 | - ## Class: Domain | ||
| 274 | + ## Class: `Domain` | ||
| 275 | 275 | ||
| 276 | 276 | * Extends: {EventEmitter} | |
| 277 | 277 | ||
@@ -280,14 +280,14 @@ uncaught exceptions to the active `Domain` object. | |||
| 280 | 280 | ||
| 281 | 281 | To handle the errors that it catches, listen to its `'error'` event. | |
| 282 | 282 | ||
| 283 | - ### domain.members | ||
| 283 | + ### `domain.members` | ||
| 284 | 284 | ||
| 285 | 285 | * {Array} | |
| 286 | 286 | ||
| 287 | 287 | An array of timers and event emitters that have been explicitly added | |
| 288 | 288 | to the domain. | |
| 289 | 289 | ||
| 290 | - ### domain.add(emitter) | ||
| 290 | + ### `domain.add(emitter)` | ||
| 291 | 291 | ||
| 292 | 292 | * `emitter` {EventEmitter|Timer} emitter or timer to be added to the domain | |
| 293 | 293 | ||
@@ -303,7 +303,7 @@ the domain `'error'` handler. | |||
| 303 | 303 | If the Timer or `EventEmitter` was already bound to a domain, it is removed | |
| 304 | 304 | from that one, and bound to this one instead. | |
| 305 | 305 | ||
| 306 | - ### domain.bind(callback) | ||
| 306 | + ### `domain.bind(callback)` | ||
| 307 | 307 | ||
| 308 | 308 | * `callback` {Function} The callback function | |
| 309 | 309 | * Returns: {Function} The bound function | |
@@ -328,7 +328,7 @@ d.on('error', (er) => { | |||
| 328 | 328 | }); | |
| 329 | 329 | ``` | |
| 330 | 330 | ||
| 331 | - ### domain.enter() | ||
| 331 | + ### `domain.enter()` | ||
| 332 | 332 | ||
| 333 | 333 | The `enter()` method is plumbing used by the `run()`, `bind()`, and | |
| 334 | 334 | `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 | |||
| 341 | 341 | itself. `enter()` and `exit()` can be called an arbitrary number of times on a | |
| 342 | 342 | single domain. | |
| 343 | 343 | ||
| 344 | - ### domain.exit() | ||
| 344 | + ### `domain.exit()` | ||
| 345 | 345 | ||
| 346 | 346 | The `exit()` method exits the current domain, popping it off the domain stack. | |
| 347 | 347 | 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 | |||
| 356 | 356 | itself. `enter()` and `exit()` can be called an arbitrary number of times on a | |
| 357 | 357 | single domain. | |
| 358 | 358 | ||
| 359 | - ### domain.intercept(callback) | ||
| 359 | + ### `domain.intercept(callback)` | ||
| 360 | 360 | ||
| 361 | 361 | * `callback` {Function} The callback function | |
| 362 | 362 | * Returns: {Function} The intercepted function | |
@@ -391,14 +391,14 @@ d.on('error', (er) => { | |||
| 391 | 391 | }); | |
| 392 | 392 | ``` | |
| 393 | 393 | ||
| 394 | - ### domain.remove(emitter) | ||
| 394 | + ### `domain.remove(emitter)` | ||
| 395 | 395 | ||
| 396 | 396 | * `emitter` {EventEmitter|Timer} emitter or timer to be removed from the domain | |
| 397 | 397 | ||
| 398 | 398 | The opposite of [`domain.add(emitter)`][]. Removes domain handling from the | |
| 399 | 399 | specified emitter. | |
| 400 | 400 | ||
| 401 | - ### domain.run(fn\[, ...args\]) | ||
| 401 | + ### `domain.run(fn[, ...args])` | ||
| 402 | 402 | ||
| 403 | 403 | * `fn` {Function} | |
| 404 | 404 | * `...args` {any} | |
| Back | FazBrowse Home | New Git URL |
0 commit comments