Maciek
07/21/2020, 2:33 PMlaunch
block? No context switching, same thread. Simple MainScope().launch {}
. Is there a way to run it sequentially or at least with smaller delays?sikri
07/21/2020, 2:43 PMprintTime() // 0 secs passed
launch {
printTime() // 5 secs passed
}
sleep(5)
Maciek
07/21/2020, 5:48 PMLukas Lechner
07/29/2020, 2:51 PMDispatchers.Main.immediate
that executes your launched coroutine immediately.Maciek
07/31/2020, 6:58 PM