distinct
fun <E> ReceiveChannel<E>.distinct(): ReceiveChannel<E>
(source)Platform and version requirements: JVM
Returns a channel containing only distinct elements from the given channel.
The elements in the resulting channel are in the same order as they were in the source channel.
The operation is intermediate and stateful. This function consumes all elements of the original ReceiveChannel.