It lets you do cooperative-multitasking. So, in `k...
# tornadofx
e
It lets you do cooperative-multitasking. So, in
kotlinx.coroutines
there will be non-blocking sleep, so instead of writing code with callbacks you can just do:
Copy code
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.