阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js async_hooks asyncResource.emitAfter(废弃)

      Node.js async_hooks asyncResource.emitAfter 废弃于: v9.6.0

      Call all after callbacks. If nested calls to emitBefore() were made, then make sure the stack is unwound properly. Otherwise an error will be thrown.

      If the user’s callback throws an exception, emitAfter() will automatically be called for all asyncIds on the stack if the error is handled by a domain or ‘uncaughtException’ handler.

      before and after calls must be unwound in the same order that they are called. Otherwise, an unrecoverable exception will occur and the process will abort. For this reason, the emitBefore and emitAfter APIs are considered deprecated. Please use runInAsyncScope, as it provides a much safer alternative.


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


      目录
      本文目录
      目录