We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7e9a12 commit 2cf2272Copy full SHA for 2cf2272
doc/api/async_context.md
@@ -167,7 +167,7 @@ calls the function passed to it within the captured context.
167
168
```js
169
const asyncLocalStorage = new AsyncLocalStorage();
170
-const runInAsyncScope = asyncLocalStorage.run(123, () => asyncLocalStorage.snapshot());
+const runInAsyncScope = asyncLocalStorage.run(123, () => AsyncLocalStorage.snapshot());
171
const result = asyncLocalStorage.run(321, () => runInAsyncScope(() => asyncLocalStorage.getStore()));
172
console.log(result); // returns 123
173
```
0 commit comments