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.】