isEmpty

abstract val isEmpty: Boolean

Returns true if the channel is empty (contains no elements), which means that an attempt to receive will suspend. This function returns false if the channel is closed for receive.

Sources

common source
Link copied to clipboard