count
suspend fun <E> ReceiveChannel<E>.count(): Int
(source)Platform and version requirements: JVM
Returns the number of elements in this channel.
The operation is terminal. This function consumes all elements of the original ReceiveChannel.
Platform and version requirements: JVM
Returns the number of elements matching the given predicate.
The operation is terminal. This function consumes all elements of the original ReceiveChannel.