Skip to content

Commit 70ec369

Browse files
Trottruyadorno
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 e5fffe2 commit 70ec369

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/async_hooks.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1157,14 +1157,14 @@ functions called by `foo`. Outside of `run`, calling `getStore` will return
11571157

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

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

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

11701170
[`AsyncResource`]: #async_hooks_class_asyncresource

0 commit comments

Comments
 (0)