elizarov
01/14/2017, 6:52 AMkotlinx.coroutines there will be non-blocking sleep, so instead of writing code with callbacks you can just do:
asyncRun {
for (i in 10 downTo 0) {
myLabel.text = "Countdown $i"
sleep(1000)
}
}
And you're text label will count down from 10 to 0 every second. You can do animations with imperative code, too.