Nodeasync_hooksAsyncResource.bindmethod AsyncResource.bind#AsyncResource.bind<Func extends (this: ThisArg,...args: any[],) => any,ThisArg,>(fn: Func,type?: string,thisArg?: ThisArg,): FuncBinds the given function to the current execution context. Type Parameters ##Func extends (this: ThisArg,...args: any[],) => any #ThisArg Parameters ##fn: Func The function to bind to the current execution context. #type: string optionalAn optional name to associate with the underlying AsyncResource. #thisArg: ThisArg optionalReturn Type #Func
method AsyncResource.bind#AsyncResource.bind<Func extends (this: ThisArg,...args: any[],) => any,ThisArg,>(fn: Func,type?: string,thisArg?: ThisArg,): FuncBinds the given function to the current execution context. Type Parameters ##Func extends (this: ThisArg,...args: any[],) => any #ThisArg Parameters ##fn: Func The function to bind to the current execution context. #type: string optionalAn optional name to associate with the underlying AsyncResource. #thisArg: ThisArg optionalReturn Type #Func