Look at some JavaFx animation examples based on co...
# coroutines
e
Look at some JavaFx animation examples based on coroutines, for example. There is a
JavaFx
dispatcher trivially implemented in
kotlinx.coroutines
to dispatch all coroutines to the single JavaFx application thread. This way you can have as many coroutines as you want, all running in the same thread, each doing its own thing: https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-javafx/src/test/kotlin/examples/FxExampleApp.kt