ExecutionContextTaskSupport
class ExecutionContextTaskSupport(val environment: ExecutionContext) extends TaskSupport with ExecutionContextTasks
A task support that uses an execution context to schedule tasks.
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 parameterized with this task support
object, so parallel collections share the same execution context backend
as the rest of the scala.concurrent
package.
- See also
scala.collection.parallel.TaskSupport for more information.