File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111These classes are used to associate state and propagate it throughout
1212callbacks and promise chains.
1313They 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
1515in other languages.
1616
1717The ` 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
224224When calling ` asyncLocalStorage.disable() ` , all current contexts linked to the
225- instance will be exited.
225+ ` asyncLocalStorage ` instance will be exited.
226226
227227Calling ` asyncLocalStorage.disable() ` is required before the
228228` asyncLocalStorage ` can be garbage collected. This does not apply to stores
You can’t perform that action at this time.
0 commit comments