Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: improve async_context introduction #40560

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/api/async_context.md
@@ -1,4 +1,4 @@
# Asynchronous Context Tracking
# Asynchronous context tracking

<!--introduced_in=v16.4.0-->

Expand All @@ -18,11 +18,11 @@ The `AsyncLocalStorage` and `AsyncResource` classes are part of the
`async_hooks` module:

```mjs
import async_hooks from 'async_hooks';
import { AsyncLocalStorage, AsyncResource } from 'async_hooks';
```

```cjs
const async_hooks = require('async_hooks');
const { AsyncLocalStorage, AsyncResource } = require('async_hooks');
```

## Class: `AsyncLocalStorage`
Expand Down
2 changes: 1 addition & 1 deletion doc/api/index.md
Expand Up @@ -11,7 +11,7 @@
<hr class="line"/>

* [Assertion testing](assert.md)
* [Async\_context](async\_context.md)
* [Asynchronous context tracking](async\_context.md)
* [Async hooks](async\_hooks.md)
* [Buffer](buffer.md)
* [C++ addons](addons.md)
Expand Down