Class ParallelStreamUtil

java.lang.Object
org.openmetadata.service.util.ParallelStreamUtil

public final class ParallelStreamUtil extends Object
  • Method Details

    • execute

      public static <T> T execute(Supplier<T> supplier, Executor executor)
    • executeWithTimeout

      public static <T> T executeWithTimeout(int timeoutInSeconds, Supplier<T> supplier, Executor executor)
    • runAsync

      public static void runAsync(Callable<Void> callable, Executor executor)