阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js async_hooks asyncResource.runInAsyncScope

      Node.js asyncResource.runInAsyncScope(fn[, thisArg, ...args])新增于: v9.6.0

      • fn < Function> The function to call in the execution context of this async resource.
      • thisArg < any> The receiver to be used for the function call.
      • …args < any> Optional arguments to pass to the function.

      Call the provided function with the provided arguments in the execution context of the async resource. This will establish the context, trigger the AsyncHooks before callbacks, call the function, trigger the AsyncHooks after callbacks, and then restore the original execution context.


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


      目录
      本文目录
      目录