The power of Async Hooks in Node.js
Theasync_hooks
module provides an API to track asynchronous resources in Node.js. An async resource is an object with a callback function associated with it. Because of Node’s nature, almost all things happening under the hood in Node.js are asynchronous calls, and a lot of these async resources are created.
Examples of async resources are Promises, Timeouts, Immediates (when calling setImmediate)…