Shailesh Sengar
03/22/2019, 12:37 PMDico
03/22/2019, 1:02 PMbdawg.io
03/22/2019, 5:38 PMActorScope
and ProducerScope
are interfaces of a standard CoroutineScope
that also has reference to an open Channel
. It could be misleading to even mention them since they have no special behavior in terms of Coroutine Scopes.Dico
03/22/2019, 6:08 PMShailesh Sengar
03/25/2019, 3:30 AMActorScope
is interface of CoroutineScope
+ ReceiveChannel
and ProducerScope
is interface of CoroutineScope
+ SendChannel
. Both can be use in Coroutine channel.
ProducerScope is scope for produce coroutine builder (https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.channels/produce.html). Also ActorScope is scope for Actor coroutine builder (https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.channels/actor.html)
I didn’t explain channel in this article because Channel
is not stable yet.
Thanks for the feedback.