Class ParallelStreamUtil


  • public final class ParallelStreamUtil
    extends Object
    • Method Detail

      • execute

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

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