From 0c6115dcf39d415914509c49ca02f9e54a0b0f5a Mon Sep 17 00:00:00 2001 From: RainChan Date: Tue, 3 Aug 2021 19:37:29 +0800 Subject: [PATCH] fix docs for subscribeOnce --- mirai-core-api/src/commonMain/kotlin/event/EventChannel.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirai-core-api/src/commonMain/kotlin/event/EventChannel.kt b/mirai-core-api/src/commonMain/kotlin/event/EventChannel.kt index a97b5ea91..38df92606 100644 --- a/mirai-core-api/src/commonMain/kotlin/event/EventChannel.kt +++ b/mirai-core-api/src/commonMain/kotlin/event/EventChannel.kt @@ -433,8 +433,8 @@ public open class EventChannel @JvmOverloads internal con ) /** - * 创建一个事件监听器, 监听事件通道中所有 [E] 及其子类事件. - * 每当 [事件广播][Event.broadcast] 时, [handler] 都会被执行. + * 创建一个事件监听器, 监听事件通道中所有 [E] 及其子类事件, 只监听一次. + * 当 [事件广播][Event.broadcast] 时, [handler] 会被执行. * * 可在任意时候通过 [Listener.complete] 来主动停止监听. *