Vincent Williams
07/29/2020, 10:07 PMval job = SupervisorJob()
val lifecycleScope = CoroutineScope(Dispatchers.Main + job)
lifecycleScope.launch { }
val job = SupervisorJob()
val lifecycleScope = CoroutineScope(job)
lifecycleScope.launch(Dispatchers.Main) { }octylFractal
07/29/2020, 10:10 PMlaunch will be run in the same way, if that was the questionVincent Williams
07/29/2020, 10:12 PMlifecycleScope.launch(Dispatchers.Main + job) { }Vincent Williams
07/29/2020, 10:12 PMlaunch correct?octylFractal
07/29/2020, 10:13 PMlaunch (or async, etc.) would use the Main dispatcher by default in the first one, but only the single launch in the second one uses Main by defaultoctylFractal
07/29/2020, 10:14 PMoctylFractal
07/29/2020, 10:14 PMcoroutineContext[CoroutineInterceptor] would differ -- no other elementVincent Williams
07/29/2020, 10:14 PM