method AsyncResource.bind
Usage in Deno
import { AsyncResource } from "node:async_hooks";
AsyncResource.bind<Func extends (this: ThisArg,...args: any[],) => any,ThisArg,>(fn: Func,type?: string,thisArg?: ThisArg,): Func
Binds the given function to the current execution context.
Func extends (this: ThisArg,...args: any[],) => any