Go to Latest
class AsyncResource
import { AsyncResource } from "https://dotland.deno.dev/std@0.177.0/node/async_hooks.ts";

Constructors

new
AsyncResource(type: string)

Properties

frame: AsyncContextFrame
type: string

Methods

bind(fn: (...args: unknown[]) => unknown, thisArg?)
runInAsyncScope(
fn: (...args: unknown[]) => unknown,
thisArg: unknown,
...args: unknown[],
)

Static Methods

bind(
fn: (...args: unknown[]) => unknown,
type?: string,
thisArg?: AsyncResource,
)