当被调用时,活动的 Immediate 对象将不会要求 Node.js 事件循环保持活动状态。 如果没有其他的活动保持事件循环运行,则进程可能会在 Immediate 对象的回调被调用之前退出。 多次调用 immediate.unref() 没有影响。

When called, the active Immediate object will not require the Node.js event loop to remain active. If there is no other activity keeping the event loop running, the process may exit before the Immediate object's callback is invoked. Calling immediate.unref() multiple times will have no effect.