CoroutineScope
interface CoroutineScope
(source)Receiver interface for generic coroutine builders, so that the code inside coroutine has a convenient access to its coroutineContext and its cancellation status via isActive.
Properties
open val coroutineContext: CoroutineContext Returns the context of this coroutine. |
|
abstract val isActive: Boolean Returns |
Inheritors
abstract class AbstractCoroutine<in T> : Abstract base class for implementation of coroutines in coroutine builders. |
|
interface ActorScope<E> : CoroutineScope, ReceiveChannel<E> Scope for actor coroutine builder. |
|
interface ProducerScope<in E> : Scope for produce coroutine builder. |