all

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

Platform and version requirements: JVM

Returns true if all elements match the given predicate.

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