fun <reified E : Event> CoroutineScope.incoming(coroutineContext: CoroutineContext = EmptyCoroutineContext, concurrencyKind: ConcurrencyKind = Listener.ConcurrencyKind.CONCURRENT, capacity: Int = Channel.UNLIMITED): ReceiveChannel<E>
打开一个指定事件的接收通道
capacity
- 同 Channel 的参数, 参见 Channel.Factory 中的常量.
See Also