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 3ffaf66

Browse filesBrowse files
Trottaddaleax
authored andcommitted
doc: replace "you should do X" with "do X"
PR-URL: #35194 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent c606ed7 commit 3ffaf66
Copy full SHA for 3ffaf66

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎doc/api/async_hooks.md‎

Copy file name to clipboardExpand all lines: doc/api/async_hooks.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1162,14 +1162,14 @@ functions called by `foo`. Outside of `run`, calling `getStore` will return
11621162

11631163
In most cases your application or library code should have no issues with
11641164
`AsyncLocalStorage`. But in rare cases you may face situations when the
1165-
current store is lost in one of asynchronous operations. Then you should
1165+
current store is lost in one of asynchronous operations. In those cases,
11661166
consider the following options.
11671167

11681168
If your code is callback-based, it is enough to promisify it with
11691169
[`util.promisify()`][], so it starts working with native promises.
11701170

11711171
If you need to keep using callback-based API, or your code assumes
1172-
a custom thenable implementation, you should use [`AsyncResource`][] class
1172+
a custom thenable implementation, use the [`AsyncResource`][] class
11731173
to associate the asynchronous operation with the correct execution context.
11741174

11751175
[`AsyncResource`]: #async_hooks_class_asyncresource

0 commit comments

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