onReceive
abstract val onReceive: SelectClause1<E>
(source)Platform and version requirements: JVM
Clause for select expression of receive suspending function that selects with the element that is received from the channel. The select invocation fails with exception if the channel isClosedForReceive (see close for details).