skipItems

suspend fun <T> ReceiveChannel<T>.skipItems(count: Int, name: String? = null)

Assert that count item events were received and ignore them. This function will suspend if no events have been received.

Throws

if one of the events was completion or an error.