summaryrefslogtreecommitdiff
path: root/doc/api/async_hooks.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/async_hooks.md')
-rw-r--r--doc/api/async_hooks.md4
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/api/async_hooks.md b/doc/api/async_hooks.md
index b390753176..4003fb1b02 100644
--- a/doc/api/async_hooks.md
+++ b/doc/api/async_hooks.md
@@ -534,8 +534,6 @@ expensive nature of the [promise introspection API][PromiseHooks] provided by
V8. This means that programs using promises or `async`/`await` will not get
correct execution and trigger ids for promise callback contexts by default.
-Here's an example:
-
```js
const ah = require('async_hooks');
Promise.resolve(1729).then(() => {
@@ -551,7 +549,7 @@ the `triggerAsyncId` value is `0`, which means that we are missing context about
the resource that caused (triggered) the `then()` callback to be executed.
Installing async hooks via `async_hooks.createHook` enables promise execution
-tracking. Example:
+tracking:
```js
const ah = require('async_hooks');