drop

fun <E> ReceiveChannel<E>.drop(
    n: Int,
    context: CoroutineContext = Unconfined
): ReceiveChannel<E>
(source)

Platform and version requirements: JVM

Returns a channel containing all elements except first n elements.

The operation is intermediate and stateless. This function consumes all elements of the original ReceiveChannel.