Uses of Interface
java.util.concurrent.StructuredTaskScope.Joiner
Packages that use StructuredTaskScope.JoinerPREVIEW
-
Uses of StructuredTaskScope.JoinerPREVIEW in java.util.concurrent
Methods in java.util.concurrent that return StructuredTaskScope.JoinerPREVIEWModifier and TypeMethodDescriptionstatic <T> StructuredTaskScope.JoinerPREVIEW
<T, Stream<StructuredTaskScope.SubtaskPREVIEW<T>>> StructuredTaskScope.Joiner.allSuccessfulOrThrow()
Returns a new Joiner object that yields a stream of all subtasks when all subtasks complete successfully.static <T> StructuredTaskScope.JoinerPREVIEW
<T, Stream<StructuredTaskScope.SubtaskPREVIEW<T>>> StructuredTaskScope.Joiner.allUntil
(Predicate<StructuredTaskScope.SubtaskPREVIEW<? extends T>> isDone) Returns a new Joiner object that yields a stream of all subtasks when all subtasks complete or a predicate returnstrue
to cancel the scope.static <T> StructuredTaskScope.JoinerPREVIEW
<T, T> StructuredTaskScope.Joiner.anySuccessfulResultOrThrow()
Returns a new Joiner object that yields the result of any subtask that completed successfully.static <T> StructuredTaskScope.JoinerPREVIEW
<T, Void> StructuredTaskScope.Joiner.awaitAll()
Returns a new Joiner object that waits for all subtasks to complete.static <T> StructuredTaskScope.JoinerPREVIEW
<T, Void> StructuredTaskScope.Joiner.awaitAllSuccessfulOrThrow()
Returns a new Joiner object that waits for subtasks to complete successfully.Methods in java.util.concurrent with parameters of type StructuredTaskScope.JoinerPREVIEWModifier and TypeMethodDescriptionstatic <T,
R> StructuredTaskScopePREVIEW <T, R> StructuredTaskScope.open
(StructuredTaskScope.JoinerPREVIEW<? super T, ? extends R> joiner) Opens a newStructuredTaskScope
to use the givenJoiner
object.static <T,
R> StructuredTaskScopePREVIEW <T, R> StructuredTaskScope.open
(StructuredTaskScope.JoinerPREVIEW<? super T, ? extends R> joiner, Function<StructuredTaskScope.ConfigPREVIEW, StructuredTaskScope.ConfigPREVIEW> configFunction) Opens a newStructuredTaskScope
to use the givenJoiner
object and with configuration that is the result of applying the given function to the default configuration.