onReceiveOrNull
val onReceiveOrNull: SelectClause1<E?>
(source)Overrides ReceiveChannel.onReceiveOrNull
Platform and version requirements: JVM
Clause for select expression of receiveOrNull suspending function that selects with the element that
is received from the channel or selects with null
if if the channel
isClosedForReceive without cause. The select invocation fails with
the original close cause exception if the channel has failed.
Getter
Clause for select expression of receiveOrNull suspending function that selects with the element that
is received from the channel or selects with null
if if the channel
isClosedForReceive without cause. The select invocation fails with
the original close cause exception if the channel has failed.