Skip to main content

getStore

method AsyncLocalStorage.prototype.getStore
Jump to headingAsyncLocalStorage.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 Jump to heading

T | undefined
Back to top