fix docs for subscribeOnce

This commit is contained in:
RainChan 2021-08-03 19:37:29 +08:00
parent 6079cbb6e0
commit 0c6115dcf3
No known key found for this signature in database
GPG Key ID: 9F7BC2C154107A1D

View File

@ -433,8 +433,8 @@ public open class EventChannel<out BaseEvent : Event> @JvmOverloads internal con
)
/**
* 创建一个事件监听器, 监听事件通道中所有 [E] 及其子类事件.
* [事件广播][Event.broadcast] , [handler] 会被执行.
* 创建一个事件监听器, 监听事件通道中所有 [E] 及其子类事件, 只监听一次.
* [事件广播][Event.broadcast] , [handler] 会被执行.
*
* 可在任意时候通过 [Listener.complete] 来主动停止监听.
*