Coroutine

data class Coroutine(val scope: CoroutineScope, val dispatcher: CoroutineDispatcher = Dispatchers.IO) : BackgroundMode(source)

Coroutine tied to a CoroutineScope — cancelled when scope is cancelled.

Constructors

Link copied to clipboard
constructor(scope: CoroutineScope, dispatcher: CoroutineDispatcher = Dispatchers.IO)

Properties

Link copied to clipboard
val dispatcher: CoroutineDispatcher
Link copied to clipboard
val scope: CoroutineScope