viralshah
04/11/2020, 3:58 PMfun CoroutineScope.foo() = launch{//some stuff}
vs
fun foo() = CoroutineScope { launch{//some stuff}}
vs
fun foo(){ coroutineScope { launch { // some stuff } } }
? ThanksCLOVIS
04/11/2020, 4:10 PMviralshah
04/11/2020, 4:11 PMMark Murphy
04/11/2020, 4:16 PMfoo()
onDico
04/11/2020, 6:32 PMsuspend
, creates a derivative coroutine scope and doesn't return until all children of that scope have died.rkeazor
04/11/2020, 11:32 PM