Skip to content

Commit

Permalink
doc: fix typos in async_context.md
Browse files Browse the repository at this point in the history
PR-URL: #47155
Reviewed-By: Debadree Chatterjee <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Deokjin Kim <[email protected]>
Reviewed-By: Harshitha K P <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
  • Loading branch information
shubhamsharma088 authored and RafaelGSS committed Apr 7, 2023
1 parent e3d98c3 commit 7ec87fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/async_context.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ calls the function passed to it within the captured context.

```js
const asyncLocalStorage = new AsyncLocalStorage();
const runInAsyncScope = asyncLocalStorage.run(123, () => asyncLocalStorage.snapshot());
const runInAsyncScope = asyncLocalStorage.run(123, () => AsyncLocalStorage.snapshot());
const result = asyncLocalStorage.run(321, () => runInAsyncScope(() => asyncLocalStorage.getStore()));
console.log(result); // returns 123
```
Expand Down

0 comments on commit 7ec87fd

Please sign in to comment.