Mbind
Bun

method

async_hooks.AsyncLocalStorage.bind

static bind<Func extends (...args: any[]) => any>(
fn: Func
): Func;

Binds the given function to the current execution context.

@param fn

The function to bind to the current execution context.

@returns

A new function that calls fn within the captured execution context.