Skip to main content
method AsyncResource.prototype.bind
AsyncResource.prototype.bind<Func extends (...args: any[]) => any>(fn: Func): Func
Deprecated

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

Type Parameters

Func extends (...args: any[]) => any

Parameters

fn: Func

The function to bind to the current AsyncResource.

Return Type

Back to top