The type of the environment is more specific in the implementations.
The type of the environment is more specific in the implementations.
Executes a task and returns a future.
Executes a task and returns a future. Forwards an exception if some task threw it.
Executes a result task, waits for it to finish, then returns its result.
Executes a result task, waits for it to finish, then returns its result. Forwards an exception if some task threw it.
Returns string formatted according to given format
string.
Returns string formatted according to given format
string.
Format strings are as for String.format
(@see java.lang.String.format).
Retrieves the parallelism level of the task execution environment.
Retrieves the parallelism level of the task execution environment.
This tasks implementation uses execution contexts to spawn a parallel computation.
As an optimization, it internally checks whether the execution context is the standard implementation based on fork/join pools, and if it is, creates a
ForkJoinTaskSupport
that shares the same pool to forward its request to it.Otherwise, it uses an execution context exclusive
Tasks
implementation to divide the tasks into smaller chunks and execute operations on it.