public ProducerScope<E> extends CoroutineScope, SendChannel<E>
Scope for ProduceKt.produce
coroutine builder.
Note: This is an experimental api. Behaviour of producers that work as children in a parent scope with respect to cancellation and error handling may change in the future.
ProduceKt.produce
Modifier and Type | Method and Description |
---|---|
SendChannel<E> |
getChannel()
A reference to the channel that this coroutine
SendChannel.send elements to.
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 SendChannel functions on this interface delegate to
the channel instance returned by this function. |
getCoroutineContext
close, getOnSend, invokeOnClose, isClosedForSend, isFull, offer, send
SendChannel<E> getChannel()
A reference to the channel that this coroutine SendChannel.send
elements to.
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 SendChannel
functions on this interface delegate to
the channel instance returned by this function.
SendChannel.send
,
interface SendChannel