Channel

fun <E> Channel(): Channel<E> (source)

Platform and version requirements: JVM

Creates a channel without a buffer – RendezvousChannel.

fun <E> Channel(capacity: Int): Channel<E> (source)

Platform and version requirements: JVM

Creates a channel with the specified buffer capacity (or without a buffer by default).

The resulting channel type depends on the specified capacity parameter: