Package io.trino.util
Class Executors
- java.lang.Object
-
- io.trino.util.Executors
-
public final class Executors extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> voidexecuteUntilFailure(Executor executor, Collection<Callable<T>> tasks)Run all tasks on executor returning as soon as all complete or any task fails.
-
-
-
Method Detail
-
executeUntilFailure
public static <T> void executeUntilFailure(Executor executor, Collection<Callable<T>> tasks)
Run all tasks on executor returning as soon as all complete or any task fails. Upon task execution failure, other tasks are cancelled and interrupted, but not waited for.
-
-