async_hooks.asyncWrapProviders


  • 返回:提供者类型到相应数字 id 的映射。 此映射包含 async_hooks.init() 事件可能触发的所有事件类型。

此特性禁止使用 process.binding('async_wrap').Providers。 参阅:DEP0111

  • Returns: A map of provider types to the corresponding numeric id. This map contains all the event types that might be emitted by the async_hooks.init() event.

This feature suppresses the deprecated usage of process.binding('async_wrap').Providers. See: DEP0111