ChannelWithCloseableData
constructor(capacity: Int = RENDEZVOUS, onBufferOverflow: BufferOverflow = BufferOverflow.SUSPEND, onUndeliveredElement: (T) -> Unit = {})(source)
Parameters
capacity
The capacity of the channel.
onBufferOverflow
The behavior when the buffer overflows.
Type Parameters
T
The type of data to be sent and received.