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.