async_hooks 异步钩子
稳定性: 1 - 实验
源代码: lib/async_hooks.js
node:async_hooks
模块提供了 API 来跟踪异步的资源。
可以使用以下方式访问它:
import async_hooks from 'node:async_hooks';
const async_hooks = require('node:async_hooks');
Stability: 1 - Experimental
Source Code: lib/async_hooks.js
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');