async_hooks

The Node.js module that tracks the creation and completion of asynchronous resources; its low-level createHook() API is discouraged in favour of AsyncLocalStorage.

In more detail

AsyncLocalStorage is exported from this module. Application code should use it rather than raw hooks, which are slow and hard to use correctly.

Related terms

Taught in

References