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.
SubscribeRelated
AsyncLocalStorageprocess.getActiveResourcesInfo()executionAsyncId()triggerAsyncId()executionAsyncResource()async_hooks.asyncWrapProviders