value

val value: E(source)

The most recently sent element to this channel.

Access to this property throws IllegalStateException when this class is constructed without initial value and no value was sent yet or if it was closed without a cause. It throws the original close cause exception if the channel has failed.