Skip to main content
HookCallbacks.destroy - async_hooks - Node documentation
method HookCallbacks.destroy

Usage in Deno

import { type HookCallbacks } from "node:async_hooks";
HookCallbacks.destroy(asyncId: number): void

Called after the resource corresponding to asyncId is destroyed

Parameters

asyncId: number

a unique ID for the async resource

Return Type

void