isEmpty

abstract val isEmpty: Boolean (source)

Platform and version requirements: JVM

Returns true if the channel is empty (contains no elements) and the receive attempt will suspend. This function returns false for isClosedForReceive channel.