onReceiveCatching

abstract val onReceiveCatching: SelectClause1<ChannelResult<E>>

Clause for the select expression of the onReceiveCatching suspending function that selects with the ChannelResult with a value that is received from the channel or with a close cause if the channel is closed for receive.

Sources

common source
Link copied to clipboard