syncRunOnFXThread

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

Checks if the current thread is the FX Application thread and calls syncRunLater if so, otherwise runs the task.

Parameters

task

the task to execute.