mirai-core / net.mamoe.mirai.event / kotlinx.coroutines.CoroutineScope / incoming

incoming

fun <reified E : Event> CoroutineScope.incoming(coroutineContext: CoroutineContext = EmptyCoroutineContext, concurrencyKind: ConcurrencyKind = Listener.ConcurrencyKind.CONCURRENT, capacity: Int = Channel.UNLIMITED): ReceiveChannel<E>

打开一个指定事件的接收通道

Parameters

capacity - 同 Channel 的参数, 参见 Channel.Factory 中的常量.

See Also

capacity

subscribeFriendMessages

subscribeMessages

subscribeGroupMessages