Skip to main content
AsyncResourceOptions.requireManualDestroy - node__async_hooks.d.ts - Node documentation
property AsyncResourceOptions.requireManualDestroy

Usage in Deno

```typescript import { type AsyncResourceOptions } from "node:node__async_hooks.d.ts"; ```
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.

Type

boolean | undefined