Skip to content
masterclass Buddy

Node.js · Module

node:async_hooks

node:async_hooks lets you observe the life cycle of asynchronous resources. It is a low-level API; use AsyncLocalStorage for asynchronous context tracking.

Last updated

Since
v8.1.0

Syntax

async_hooks.createHook(options)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • AsyncLocalStorage
  • process.getActiveResourcesInfo()
  • executionAsyncId()
  • triggerAsyncId()
  • executionAsyncResource()
  • async_hooks.asyncWrapProviders

Source: Async hooks | Node.js v26.13.0 Documentation. Checked 2026-11-03.