fun runLater(op: () -> Unit): Unit
Run the specified Runnable on the JavaFX Application Thread at some unspecified time in the future.
fun runLater(delay: Duration, op: () -> Unit): FXTimerTask
Run the specified Runnable on the JavaFX Application Thread after a specified delay.
runLater(10.seconds) { // Do something on the application thread }
This function returns a TimerTask which includes a runningProperty as well as the owning timer. You can cancel the task before the time is up to abort the execution.