java.lang.Object
org.jhotdraw8.fxbase.concurrent.PlatformUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TcallAndWait(long timeout, Callable<T> r) Executes a callable on the JavaFX Application thread and waits until it completes.static <T> TcallAndWait(Callable<T> r) Executes a callable on the JavaFX Application thread and waits 1 minute until it completes.static voidinvokeAndWait(long timeout, RunnableWithException r) Executes a runnable on the JavaFX Application thread and waits until it completes.static voidExecutes a runnable on the JavaFX Application thread and waits 1 minute until it completes.
-
Method Details
-
invokeAndWait
Executes a runnable on the JavaFX Application thread and waits 1 minute until it completes.- Parameters:
r- the runnable
-
invokeAndWait
Executes a runnable on the JavaFX Application thread and waits until it completes.- Parameters:
timeout- the timeout in millisecondsr- the runnable
-
callAndWait
Executes a callable on the JavaFX Application thread and waits 1 minute until it completes.- Parameters:
r- the runnable
-
callAndWait
Executes a callable on the JavaFX Application thread and waits until it completes.- Parameters:
timeout- the timeout in millisecondsr- the runnable
-