poll

fun poll(): E? (source)

Overrides ReceiveChannel.poll

Platform and version requirements: JVM

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