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

Usage in Deno

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

Enable the callbacks for a given AsyncHook instance. If no callbacks are provided enabling is a noop.

Return Type

this
Back to top