ExecutionContextTaskSupport

scala.collection.parallel.ExecutionContextTaskSupport

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.

Attributes

See also
Graph
Supertypes
trait TaskSupport
trait Tasks
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

trait WrappedTask[R, +Tp]

Attributes

Inherited from:
Tasks
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait AWSTWrappedTask[R, Tp]
class AWSFJTWrappedTask[R, Tp]
trait FJTWrappedTask[R, Tp]

Value members

Inherited methods

def execute[R, Tp](task: Task[R, Tp]): () => R

Executes a task and returns a future. Forwards an exception if some task threw it.

Executes a task and returns a future. Forwards an exception if some task threw it.

Attributes

Inherited from:
ExecutionContextTasks
def executeAndWaitResult[R, Tp](task: Task[R, Tp]): R

Executes a result task, waits for it to finish, then returns its result. Forwards an exception if some task threw it.

Executes a result task, waits for it to finish, then returns its result. Forwards an exception if some task threw it.

Attributes

Inherited from:
ExecutionContextTasks

Attributes

Inherited from:
ExecutionContextTasks

Retrieves the parallelism level of the task execution environment.

Retrieves the parallelism level of the task execution environment.

Attributes

Inherited from:
ExecutionContextTasks

Concrete fields

The type of the environment is more specific in the implementations.

The type of the environment is more specific in the implementations.

Attributes