none

suspend fun <E> ReceiveChannel<E>.none(): Boolean (source)

Platform and version requirements: JVM

Returns true if the channel has no elements.

The operation is terminal. This function consumes all elements of the original ReceiveChannel.

inline suspend fun <E> ReceiveChannel<E>.none(
    predicate: (E) -> Boolean
): Boolean
(source)

Platform and version requirements: JVM

Returns true if no elements match the given predicate.

The operation is terminal. This function consumes all elements of the original ReceiveChannel.