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.
Retrieves the parallelism level of the task execution environment.
Retrieves the parallelism level of the task execution environment.
A task support that uses an execution context to schedule tasks.
It can be used with the default execution context implementation in the
scala.concurrent
package. It internally forwards the call to either a forkjoin based task support or a thread pool executor one, depending on what the execution context uses.By default, parallel collections are parametrized with this task support object, so parallel collections share the same execution context backend as the rest of the
scala.concurrent
package.scala.collection.parallel.TaskSupport for more information.