server.unref()


如果服务器是事件系统中唯一的活动服务器,则在服务器上调用 unref() 将允许程序退出。 如果服务器已经被 unref,则再次调用 unref() 将无效。

Calling unref() on a server will allow the program to exit if this is the only active server in the event system. If the server is already unrefed calling unref() again will have no effect.