MgetStore
Bun

method

async_hooks.AsyncLocalStorage.getStore

getStore(): undefined | T;

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