Skip to main content
Up or down tonavigateEnter toselectEscape toclose⌘⇧KAI

method AsyncLocalStorage.prototype.getStore

#AsyncLocalStorage.prototype.getStore(): T | undefined

Returns the current store. If called outside of an asynchronous context initialized by calling asyncLocalStorage.run() or asyncLocalStorage.enterWith(), it returns undefined.

Return Type #

T | undefined