poll

abstract fun poll(): E? (source)

Retrieves and removes an element from this channel if its not empty, or returns null if the channel is empty or is is closed for receive without a cause. It throws the original close cause exception if the channel has failed.