阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js MessagePort port.ref

      Node.js MessagePort port.ref

      新增于: v10.5.0

      Opposite of unref(). Calling ref() on a previously unref()ed port will not let the program exit if it’s the only active handle left (the default behavior). If the port is ref()ed, calling ref() 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 工作线程,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录