Package io.trino.util
Class Executors
java.lang.Object
io.trino.util.Executors
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> voidexecuteUntilFailure(Executor executor, Collection<Callable<T>> tasks) Run all tasks on executor returning as soon as all complete or any task fails.
-
Method Details
-
executeUntilFailure
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.
-