Run operation op
on FX application thread.
Run operation op
on FX application thread.
If on FX Application thread it will wait for operation to compete,
if not on FX Application thread it will return without waiting for the operation to complete.
operation to be performed.
Run operation op
on FX application thread and wait for completion.
Run operation op
on FX application thread and wait for completion.
If the current thread is the FX application, the operation will be run on it.
operation to be performed.
java.lang.InterruptedException
- if the current thread was interrupted while waiting
java.util.concurrent.CancellationException
- if the computation was cancelled
java.util.concurrent.ExecutionException
- if the computation threw an exception
(Since version ) see corresponding Javadoc for more information.
Contains methods to work with multiple threads and javaFx with ease Code from: https://github.com/scalafx/scalafx-extras/blob/master/scalafx-extras/src/main/scala/org/scalafx/extras/package.scala