What Are Async Hooks
The async_hooks
module provides an API to register callbacks tracking the lifetime of asynchronous resources created inside a Node.js application.
- asynchronous resources are tracked in C++
- anything inheriting from the
AsyncWrap
class is an asynchronous resource