public ActorScope<E> extends CoroutineScope, ReceiveChannel<E>
Scope for ActorKt.actor coroutine builder.
Note: This API will become obsolete in future updates with introduction of complex actors. See https://github.com/Kotlin/kotlinx.coroutines/issues/87.
ReceiveChannel.DefaultImpls| Modifier and Type | Method and Description |
|---|---|
Channel<E> |
getChannel()
A reference to the mailbox channel that this coroutine
ReceiveChannel.receive messages from.
It is provided for convenience, so that the code in the coroutine can refer
to the channel as channel as apposed to this.
All the interface ReceiveChannel functions on this interface delegate to
the channel instance returned by this function. |
getCoroutineContextcancel, getOnReceive, getOnReceiveOrNull, isClosedForReceive, isEmpty, iterator, poll, receive, receiveOrNullChannel<E> getChannel()
A reference to the mailbox channel that this coroutine ReceiveChannel.receive messages from.
It is provided for convenience, so that the code in the coroutine can refer
to the channel as channel as apposed to this.
All the interface ReceiveChannel functions on this interface delegate to
the channel instance returned by this function.
ReceiveChannel.receive,
interface ReceiveChannel