File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Open diff view settings
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Open diff view settings
Original file line number Diff line number Diff line change @@ -1162,14 +1162,14 @@ functions called by `foo`. Outside of `run`, calling `getStore` will return
11621162
11631163In 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,
11661166consider the following options.
11671167
11681168If your code is callback-based, it is enough to promisify it with
11691169[ ` util.promisify() ` ] [ ] , so it starts working with native promises.
11701170
11711171If 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
11731173to associate the asynchronous operation with the correct execution context.
11741174
11751175[ `AsyncResource` ] : #async_hooks_class_asyncresource
You can’t perform that action at this time.
0 commit comments