Uses of Interface
java.util.concurrent.StructuredTaskScope.Subtask
Packages that use StructuredTaskScope.Subtask
-
Uses of StructuredTaskScope.Subtask in java.util.concurrent
Methods in java.util.concurrent that return StructuredTaskScope.SubtaskModifier and TypeMethodDescription<U extends T>
StructuredTaskScope.Subtask<U> Forks a subtask by starting a new thread in this scope to execute a method that does not return a result.<U extends T>
StructuredTaskScope.Subtask<U> Forks 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.SubtaskModifier and TypeMethodDescriptionstatic <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.Methods in java.util.concurrent with parameters of type StructuredTaskScope.SubtaskModifier and TypeMethodDescriptiondefault booleanStructuredTaskScope.Joiner.onComplete(StructuredTaskScope.Subtask<T> subtask) Invoked by the thread that executed a subtask after the subtask completes, or by the scope owner thread when forking is unable to create a thread to execute the subtask.default booleanStructuredTaskScope.Joiner.onFork(StructuredTaskScope.Subtask<T> subtask) Invoked by the scope owner thread when forking a subtask.Method parameters in java.util.concurrent with type arguments of type StructuredTaskScope.SubtaskModifier and TypeMethodDescriptionstatic <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.