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 7ec87fd

Browse filesBrowse files
shubhamsharma088RafaelGSS
authored andcommitted
doc: fix typos in async_context.md
PR-URL: #47155 Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com> Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent e3d98c3 commit 7ec87fd
Copy full SHA for 7ec87fd

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎doc/api/async_context.md‎

Copy file name to clipboardExpand all lines: doc/api/async_context.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ calls the function passed to it within the captured context.
167167

168168
```js
169169
const asyncLocalStorage = new AsyncLocalStorage();
170-
const runInAsyncScope = asyncLocalStorage.run(123, () => asyncLocalStorage.snapshot());
170+
const runInAsyncScope = asyncLocalStorage.run(123, () => AsyncLocalStorage.snapshot());
171171
const result = asyncLocalStorage.run(321, () => runInAsyncScope(() => asyncLocalStorage.getStore()));
172172
console.log(result); // returns 123
173173
```

0 commit comments

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