removeAllFromChannel

fun removeAllFromChannel(c: Collection<T>, waitStats: Boolean = true)

Attempts to remove all the supplied items from the channel. Throws an IllegalStateException if all the items are not present in the channel. Removing items from the channel triggers the entities waiting to send more items into the channel if the channel was full.

Parameters

c

the collection of items to remove from the channel

waitStats

indicates whether waiting time statistics should be collected