poll

abstract fun poll(): E? (source)

Retrieves and removes the element from this channel, or returns null if this channel is empty or is isClosedForReceive without cause. It throws the original close cause exception if the channel has failed.