val job = GlobalScope.launch {
<How do I access the Job from here>
}
t
Timmy
11/30/2018, 9:05 PM
Sounds like an excellent use case for structured concurrency. Instead of launching all these tasks on the GlobalScope just launch them from your own CoroutineScope. All the cancellation and error propagation is already implemented.