Class PlatformUtil

java.lang.Object
org.jhotdraw8.fxbase.concurrent.PlatformUtil

public class PlatformUtil extends Object
  • Method Details

    • invokeAndWait

      public static void invokeAndWait(RunnableWithException r)
      Executes a runnable on the JavaFX Application thread and waits 1 minute until it completes.
      Parameters:
      r - the runnable
    • invokeAndWait

      public static void invokeAndWait(long timeout, RunnableWithException r)
      Executes a runnable on the JavaFX Application thread and waits until it completes.
      Parameters:
      timeout - the timeout in milliseconds
      r - the runnable
    • callAndWait

      public static <T> T callAndWait(Callable<T> r)
      Executes a callable on the JavaFX Application thread and waits 1 minute until it completes.
      Parameters:
      r - the runnable
    • callAndWait

      public static <T> T callAndWait(long timeout, Callable<T> r)
      Executes a callable on the JavaFX Application thread and waits until it completes.
      Parameters:
      timeout - the timeout in milliseconds
      r - the runnable