CoroutineScope

interface CoroutineScope

Receiver interface for generic coroutine builders, so that the code inside coroutine has a convenient and fast access to its own cancellation status via isActive.

Properties

isActive

abstract val isActive: Boolean

Returns true when this coroutine is still active (has not completed and was not cancelled yet).

Inheritors

AbstractCoroutine

abstract class AbstractCoroutine<in T> : 
    JobSupport,
    Job,
    Continuation<T>,
    CoroutineScope

Abstract base class for implementation of coroutines in coroutine builders.

ActorScope

interface ActorScope<E> : CoroutineScope, ReceiveChannel<E>

Scope for actor coroutine builder.

ProducerScope

interface ProducerScope<in E> : 
    CoroutineScope,
    SendChannel<E>

Scope for produce coroutine builder.