阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js MessagePort port.unref

      Node.js MessagePort port.unref

      新增于: v10.5.0

      Calling unref() on a port will allow the thread to exit if this is the only active handle in the event system. If the port is already unref()ed calling unref() again will have no effect.

      If listeners are attached or removed using .on(‘message’), the port will be ref()ed and unref()ed automatically depending on whether listeners for the event exist.


      更多内容请参考:Node.js worker_threads 工作线程,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录