method AsyncResource.bind
AsyncResource.bind<Func extends (this: ThisArg,...args: any[],) => any,ThisArg,>(fn: Func,type?: string,thisArg?: ThisArg,): Func
Deprecated
Binds the given function to the current execution context.
Func extends (this: ThisArg,...args: any[],) => any