ChannelWithCloseableData

constructor(capacity: Int = RENDEZVOUS, onBufferOverflow: BufferOverflow = BufferOverflow.SUSPEND)(source)

Parameters

T

The type of data to be sent and received.

capacity

The capacity of the channel.

onBufferOverflow

The behavior when the buffer overflows.