onReceive

val onReceive: SelectClause1<E> (source)

Overrides ReceiveChannel.onReceive

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).

Getter

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).