See: Description
| Interface | Description |
|---|---|
| ActorScope<E> |
Scope for
ActorKt.actor coroutine builder. |
| BroadcastChannel<E> |
Broadcast channel is a non-blocking primitive for communication between the sender and multiple receivers
that subscribe for the elements using
BroadcastChannel.openSubscription function and unsubscribe using ReceiveChannel.cancel
function. |
| Channel<E> |
Channel is a non-blocking primitive for communication between sender using
interface SendChannel and receiver using interface ReceiveChannel.
Conceptually, a channel is similar to BlockingQueue,
but it has suspending operations instead of blocking ones and it can be closed. |
| ChannelIterator<E> |
Iterator for
interface ReceiveChannel. Instances of this interface are not thread-safe and shall not be used
from concurrent coroutines. |
| ProducerScope<E> |
Scope for
ProduceKt.produce coroutine builder. |
| ReceiveChannel<E> |
Receiver's interface to
interface Channel. |
| SendChannel<E> |
Sender's interface to
interface Channel. |
| Class | Description |
|---|---|
| AbstractChannelKt | |
| ActorKt | |
| BroadcastChannelKt | |
| BroadcastKt | |
| ChannelKt | |
| ChannelsKt | |
| ConflatedBroadcastChannel<E> |
Broadcasts the most recently sent element (aka
ConflatedBroadcastChannel.getValue) to all ConflatedBroadcastChannel.openSubscription subscribers. |
| ProduceKt | |
| TickerChannelsKt |
| Enum | Description |
|---|---|
| TickerMode |
Mode for
TickerChannelsKt.ticker function. |
| Exception | Description |
|---|---|
| ClosedReceiveChannelException |
Indicates attempt to
ReceiveChannel.receive on ReceiveChannel.isClosedForReceive
channel that was closed without a cause. A failed channel rethrows the original SendChannel.close cause
exception on receive attempts. |
| ClosedSendChannelException |
Indicates attempt to
SendChannel.send on SendChannel.isClosedForSend channel
that was closed without a cause. A failed channel rethrows the original SendChannel.close cause
exception on send attempts. |
Channels -- non-blocking primitives for communicating a stream of elements between coroutines.