Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何获得一定数量的订阅者EventMachine::Channel以知道没有订阅者离开并且我可以删除频道?
EventMachine::Channel
目前无法获取此信息 - 订阅者是没有公共访问器方法的私有哈希(请参阅此处的源代码)。我已经打开了一个拉取请求来添加此功能,同时扩展 Channel 类以自己添加它非常简单。