Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class AsyncResource
import { AsyncResource } from "https://deno.land/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,
)