process.channel.unref()
这种方法使 IPC 通道不会保持进程的事件循环运行,并且即使通道打开也允许其完成。
🌐 This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open.
通常,这是通过在 process 对象上设置 'disconnect' 和 'message' 监听器的数量来管理的。然而,这种方法可以用来明确请求某种特定的行为。
🌐 Typically, this is managed through the number of 'disconnect' and 'message'
listeners on the process object. However, this method can be used to
explicitly request a specific behavior.