voben
06/13/2019, 12:52 AMcoroutineScope function is doing. How come we can’t hit myDeferred2 line without waiting 7secs. Shouldn’t myDeferred2 get scheduled as soon as myDeferred1 is suspended?
viewModelScope.launch {
val myDeferred1 = coroutineScope {
delay(7000)
}
val myDeferred2 = coroutineScope {
delay(2000)
}
}Paulius Ruminas
06/13/2019, 8:40 AM