deno.com
method AsyncResource.prototype.bind
#AsyncResource.prototype.bind<Func extends (...args: any[]) => any>(fn: Func): Func

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 #