Protected
Abstract
Protected
Abstract
createOptional
defaults: Dictionary<K, V>Retrieves the current store.
The current store or undefined if there is no store.
Experimental
Binds a function to the current store context. Marked experimental as it depends on AsyncLocalStorage.bind
The function to bind.
The bound function.
Protected
enterExperimental
Enters a new store context with the given default values. Marked experimental as it depends on AsyncLocalStorage#enterWith
Optional
defaults: Dictionary<K, V>The default values to initialize the store with.
A base class from which the modern and legacy APIs are both derived.