getStore

fun getStore(): T?(source)

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

Since

v13.10.0, v12.17.0