阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js domain

      Node.js domain 版本历史

      版本变更
      v8.8.0Any Promises created in VM contexts no longer have a .domain property. Their handlers are still executed in the proper domain, however, and Promises created in the main context still possess a .domain property.
      v8.0.0Handlers for Promises are now invoked in the domain in which the first promise of a chain was created.

      This module is pending deprecation. Once a replacement API has been finalized, this module will be fully deprecated. Most end users should not have cause to use this module. Users who absolutely must have the functionality that domains provide may rely on it for the time being but should expect to have to migrate to a different solution in the future.

      Domains provide a way to handle multiple different IO operations as a single group. If any of the event emitters or callbacks registered to a domain emit an ‘error’ event, or throw an error, then the domain object will be notified, rather than losing the context of the error in the process.on(‘uncaughtException’) handler, or causing the program to exit immediately with an error code.

      目录
      本文目录
      目录