zak.taccardi
04/22/2020, 8:23 PMval parentScope = CoroutineScope(Dispatchers.Default)
val childScope = parentScope + Job(parent = scope.coroutineConext[Job]!!)
octylFractal
04/22/2020, 8:28 PMparentScope.newCoroutineContext(Job(parentScope.coroutineContext[Job]))
is probably more idiomatic, and the closest I could find to what actually happenszak.taccardi
04/22/2020, 8:29 PMval parentScope = CoroutineScope(Dispatchers.Default)
val childScope = parentScope + Job()
Zach Klippenstein (he/him) [MOD]
04/22/2020, 8:57 PMZach Klippenstein (he/him) [MOD]
04/22/2020, 8:58 PMzak.taccardi
04/22/2020, 9:12 PMoctylFractal
04/22/2020, 9:14 PMCoroutineScope(...)
is a generic, non-suspend constructor. How can it figure out what the parent Job is?