https://kotlinlang.org logo
#coroutines
Title
# coroutines
n

nwh

11/05/2018, 9:43 PM
Also, in what situation is a
CoroutineScope
not used for what is essentially an on-going
Job
with a lifecycle? That's how I've always thought about it (I believe it was mentioned in a kotlinconf talk)
z

Zach Klippenstein (he/him) [MOD]

11/06/2018, 12:01 AM
A
CoroutineScope
is just something that provides a
CoroutineContext
. That context can contain whatever you want – the dispatcher to use, uncaught exception handlers, a name for debugging, etc.
2 Views