DEP0163:channel.subscribe(onMessage), channel.unsubscribe(onMessage)
类型:撤销弃用
¥Type: Deprecation revoked
这些方法已被弃用,因为如果用户未强引用这些方法,则使用这些方法可能会导致通道对象容易被垃圾回收。弃用已被撤销,因为当通道对象现在具有活跃订阅者时,它们将无法被垃圾回收。
¥These methods were deprecated because their use could leave the channel object vulnerable to being garbage-collected if not strongly referenced by the user. The deprecation was revoked because channel objects are now resistant to garbage collection when the channel has active subscribers.