Utility classes commonly useful in concurrent programming.
-
Starts a new thread in this scope to execute a task that does not return a
result, creating a subtask.
Starts a new thread in this scope to execute a value-returning task, thus creating
a subtask.
Returns a new Joiner object that yields a stream of all subtasks when all
subtasks complete successfully.
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.
default boolean
Invoked by the thread started to execute a subtask after the subtask completes
successfully or fails with an exception.
default boolean
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.