# Uses of Interface
java.util.concurrent.StructuredTaskScope.Joiner

Packages that use StructuredTaskScope.JoinerPREVIEW
Package
Description
java.util.concurrent
Utility classes commonly useful in concurrent programming.

## Uses of StructuredTaskScope.JoinerPREVIEW in java.util.concurrent

Methods in java.util.concurrent that return StructuredTaskScope.JoinerPREVIEW
Modifier and Type
Method
Description
`static <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 returns `true` 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.JoinerPREVIEW
Modifier and Type
Method
Description
`static <T,R> StructuredTaskScopePREVIEW<T,R>`
StructuredTaskScope.`open(StructuredTaskScope.JoinerPREVIEW<? super T, ? extends R> joiner)`
Opens a new `StructuredTaskScope`to use the given `Joiner` object.
`static <T,R> StructuredTaskScopePREVIEW<T,R>`
StructuredTaskScope.`open(StructuredTaskScope.JoinerPREVIEW<? super T, ? extends R> joiner, Function<StructuredTaskScope.ConfigurationPREVIEW, StructuredTaskScope.ConfigurationPREVIEW> configFunction)`
Opens a new `StructuredTaskScope` to use the given `Joiner` object and with configuration that is the result of applying the given function to the default configuration.