Uses of Interface
java.util.concurrent.StructuredTaskScope.Subtask
Packages that use StructuredTaskScope.SubtaskPREVIEW
-
Uses of StructuredTaskScope.SubtaskPREVIEW in java.util.concurrent
Methods in java.util.concurrent that return StructuredTaskScope.SubtaskPREVIEWModifier and TypeMethodDescription<U extends T>
StructuredTaskScope.SubtaskPREVIEW<U> Fork a subtask by starting a new thread in this scope to execute a method that does not return a result.<U extends T>
StructuredTaskScope.SubtaskPREVIEW<U> Fork a subtask by starting a new thread in this scope to execute a value-returning method.Methods in java.util.concurrent that return types with arguments of type StructuredTaskScope.SubtaskPREVIEWModifier 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.Methods in java.util.concurrent with parameters of type StructuredTaskScope.SubtaskPREVIEWModifier and TypeMethodDescriptiondefault boolean
StructuredTaskScope.Joiner.onComplete
(StructuredTaskScope.SubtaskPREVIEW<? extends T> subtask) Invoked by the thread started to execute a subtask after the subtask completes successfully or fails with an exception.default boolean
StructuredTaskScope.Joiner.onFork
(StructuredTaskScope.SubtaskPREVIEW<? extends T> subtask) Method parameters in java.util.concurrent with type arguments of type StructuredTaskScope.SubtaskPREVIEWModifier and TypeMethodDescriptionstatic <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.