异步钩子
🌐 Async hooks
稳定性: 1 - 实验性
源代码: lib/async_hooks.js
node:async_hooks 模块提供了一个用于跟踪异步资源的 API。可以通过以下方式访问:
🌐 The node:async_hooks module provides an API to track asynchronous resources.
It can be accessed using:
import async_hooks from 'node:async_hooks';const async_hooks = require('node:async_hooks');