Skip to content

Commit 2c1a2de

Browse files
committed
doc: fix async_context documentation
1 parent e53d87a commit 2c1a2de

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

doc/api/async_context.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
These classes are used to associate state and propagate it throughout
1212
callbacks and promise chains.
1313
They allow storing data throughout the lifetime of a web request
14-
or any other asynchronous duration. It is similar to thread-local storage
14+
or any other asynchronous operation. It is similar to thread-local storage
1515
in other languages.
1616

1717
The `AsyncLocalStorage` and `AsyncResource` classes are part of the
@@ -142,7 +142,7 @@ changes:
142142
* `defaultValue` {any} The default value to be used when no store is provided.
143143
* `name` {string} A name for the `AsyncLocalStorage` value.
144144

145-
Creates a new instance of `AsyncLocalStorage`. Store is only provided within a
145+
Creates a new instance of `AsyncLocalStorage`. A store is only provided within a
146146
`run()` call or after an `enterWith()` call.
147147

148148
### Static method: `AsyncLocalStorage.bind(fn)`
@@ -222,7 +222,7 @@ to `asyncLocalStorage.getStore()` will return `undefined` until
222222
`asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()` is called again.
223223

224224
When calling `asyncLocalStorage.disable()`, all current contexts linked to the
225-
instance will be exited.
225+
`asyncLocalStorage` instance will be exited.
226226

227227
Calling `asyncLocalStorage.disable()` is required before the
228228
`asyncLocalStorage` can be garbage collected. This does not apply to stores

0 commit comments

Comments
 (0)