| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 488ee51 commit 6e3e50f
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - # Asynchronous Context Tracking | ||
| 1 | + # Asynchronous context tracking | ||
| 2 | 2 | ||
| 3 | 3 | <!--introduced_in=v16.4.0--> | |
| 4 | 4 | ||
@@ -18,11 +18,11 @@ The `AsyncLocalStorage` and `AsyncResource` classes are part of the | |||
| 18 | 18 | `async_hooks` module: | |
| 19 | 19 | ||
| 20 | 20 | ```mjs | |
| 21 | - import async_hooks from 'async_hooks'; | ||
| 21 | + import { AsyncLocalStorage, AsyncResource } from 'async_hooks'; | ||
| 22 | 22 | ``` | |
| 23 | 23 | ||
| 24 | 24 | ```cjs | |
| 25 | - const async_hooks = require('async_hooks'); | ||
| 25 | + const { AsyncLocalStorage, AsyncResource } = require('async_hooks'); | ||
| 26 | 26 | ``` | |
| 27 | 27 | ||
| 28 | 28 | ## Class: `AsyncLocalStorage` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ | |||
| 11 | 11 | <hr class="line"/> | |
| 12 | 12 | ||
| 13 | 13 | * [Assertion testing](assert.md) | |
| 14 | - * [Async\_context](async\_context.md) | ||
| 14 | + * [Asynchronous context tracking](async\_context.md) | ||
| 15 | 15 | * [Async hooks](async\_hooks.md) | |
| 16 | 16 | * [Buffer](buffer.md) | |
| 17 | 17 | * [C++ addons](addons.md) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments