syncRunLater

fun <T : Any> syncRunLater(task: () -> T): T

Runs the given task on the FX thread and waits for the task to finish, returning any value the task returns. Throws an exception if the task takes more than a given amount of milliseconds.

Parameters

task

the task to execute.