Factory

object Factory(source)

Constants for the channel factory function Channel().

Properties

Link copied to clipboard
const val BUFFERED: Int

Requests a buffered channel with the default buffer capacity in the Channel(...) factory function. The default capacity for a channel that suspends on overflow is 64 and can be overridden by setting DEFAULT_BUFFER_PROPERTY_NAME on JVM. For non-suspending channels, a buffer of capacity 1 is used.

Link copied to clipboard
const val CONFLATED: Int

Requests a conflated channel in the Channel(...) factory function. This is a shortcut to creating a channel with onBufferOverflow = DROP_OLDEST.

Link copied to clipboard

Name of the property that defines the default channel capacity when BUFFERED is used as parameter in Channel(...) factory function.

Link copied to clipboard
const val RENDEZVOUS: Int = 0

Requests a rendezvous channel in the Channel(...) factory function — a channel that does not have a buffer.

Link copied to clipboard
const val UNLIMITED: Int

Requests a channel with an unlimited capacity buffer in the Channel(...) factory function.