Skip to content

Commit 2cf2272

Browse files
Update async_context.md
1 parent f7e9a12 commit 2cf2272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/async_context.md

Lines changed: 1 addition & 1 deletion
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)