阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js asyncHook.enable()

      Node.js asyncHook.enable()

      • Returns:A reference to asyncHook.

      Enable the callbacks for a given AsyncHook instance. If no callbacks are provided enabling is a noop.

      The AsyncHook instance is disabled by default. If the AsyncHook instance should be enabled immediately after creation, the following pattern can be used.

      const async_hooks = require('async_hooks');
      
      const hook = async_hooks.createHook(callbacks).enable();
      

      更多选项请参考:Node.js 异步钩子,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录