Skip to main content
AsyncHook.disable - async_hooks - Node documentation
method AsyncHook.disable

Usage in Deno

import { type AsyncHook } from "node:async_hooks";
AsyncHook.disable(): this

Disable the callbacks for a given AsyncHook instance from the global pool of AsyncHook callbacks to be executed. Once a hook has been disabled it will not be called again until enabled.

Return Type

this
Back to top