zak.taccardi
04/22/2020, 9:11 PMCoroutineScope
and make sure realize the side effects of breaking structured concurrency. ex: CoroutineScope(Dispatchers.Default)
explicitly breaks structured concurrency.
This has testing implications like passing tests even when exceptions are thrown https://gist.github.com/ZakTaccardi/e77d5983660ce4e8e0fa2f2ef0d582eaoctylFractal
04/22/2020, 9:19 PMparentScope.launch(Dispatcher.UNCONFINED) {
throw Exception("fail")
}
.join()
no reason to do the addition yourselfstreetsofboston
04/22/2020, 10:13 PMwithContext(myDispatcher)
or launch(myDispatcher)
etc.Antanas A.
04/23/2020, 7:58 AM