tryReceive

abstract fun tryReceive(): ChannelResult<E>(source)

Retrieves and removes an element from this channel if it's not empty, returning a successful result, returns failed result if the channel is empty, and closed result if the channel is closed.