Skip to main content
AsyncResourceOptions - async_hooks - Node documentation
interface AsyncResourceOptions

Usage in Deno

import { type AsyncResourceOptions } from "node:async_hooks";

Properties

optional
triggerAsyncId: number | undefined

The ID of the execution context that created this async event.

optional
requireManualDestroy: boolean | undefined

Disables automatic emitDestroy when the object is garbage collected. This usually does not need to be set (even if emitDestroy is called manually), unless the resource's asyncId is retrieved and the sensitive API's emitDestroy is called with it.

Back to top