Mbind
Bun

method

events.default.EventEmitterReferencingAsyncResource.bind

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

Binds the given function to execute to this AsyncResource's scope.

@param fn

The function to bind to the current AsyncResource.