Uses of Interface
java.util.concurrent.StructuredTaskScope.Joiner
Packages that use StructuredTaskScope.Joiner
-
Uses of StructuredTaskScope.Joiner in java.util.concurrent
Methods in java.util.concurrent that return StructuredTaskScope.JoinerModifier and TypeMethodDescriptionstatic <T> StructuredTaskScope.Joiner<T, List<T>, ExecutionException> StructuredTaskScope.Joiner.allSuccessfulOrThrow()Returns a new Joiner that produces a list of all results when all subtasks complete successfully.static <T, R_X extends Throwable>
StructuredTaskScope.Joiner<T, List<T>, R_X> StructuredTaskScope.Joiner.allSuccessfulOrThrow(Function<Throwable, R_X> esf) Returns a new Joiner that produces a list of all results when all subtasks complete successfully.static <T> StructuredTaskScope.Joiner<T, List<StructuredTaskScope.Subtask<T>>, RuntimeException> StructuredTaskScope.Joiner.allUntil(Predicate<? super StructuredTaskScope.Subtask<T>> isDone) Returns a new Joiner that produces a list of all subtasks when all subtasks complete, or when evaluation of a predicate on a completed subtask causes the scope to be cancelled.static <T> StructuredTaskScope.Joiner<T, T, ExecutionException> StructuredTaskScope.Joiner.anySuccessfulOrThrow()Returns a new Joiner that produces the result of any successful subtask.static <T, R_X extends Throwable>
StructuredTaskScope.Joiner<T, T, R_X> StructuredTaskScope.Joiner.anySuccessfulOrThrow(Function<Throwable, R_X> esf) Returns a new Joiner that produces the result of any successful subtask.static <T> StructuredTaskScope.Joiner<T, Void, ExecutionException> StructuredTaskScope.Joiner.awaitAllSuccessfulOrThrow()Returns a new Joiner that causes thejoin()method to wait for all subtasks to complete successfully.static <T, R_X extends Throwable>
StructuredTaskScope.Joiner<T, Void, R_X> StructuredTaskScope.Joiner.awaitAllSuccessfulOrThrow(Function<Throwable, R_X> esf) Returns a new Joiner that causes thejoin()method to wait for all subtasks to complete successfully.Methods in java.util.concurrent with parameters of type StructuredTaskScope.JoinerModifier and TypeMethodDescriptionstatic <T, R, R_X extends Throwable>
StructuredTaskScope<T, R, R_X> StructuredTaskScope.open(StructuredTaskScope.Joiner<? super T, ? extends R, R_X> joiner) Opens a newStructuredTaskScopethat uses the givenJoinerobject.static <T, R, R_X extends Throwable>
StructuredTaskScope<T, R, R_X> StructuredTaskScope.open(StructuredTaskScope.Joiner<? super T, ? extends R, R_X> joiner, UnaryOperator<StructuredTaskScope.Configuration> configOperator) Opens a newStructuredTaskScopethat uses the givenJoinerobject and theConfigurationthat is the result of applying the given operator to the default configuration.