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
trait Tasks
class Object
trait Matchable
class Any

Type members

Inherited classlikes

trait WrappedTask[R, +Tp]
Inherited from
Tasks

Value members

Inherited methods

def execute[R, Tp](task: Task[R, Tp]): () => R
Inherited from
ExecutionContextTasks
def executeAndWaitResult[R, Tp](task: Task[R, Tp]): R
Inherited from
ExecutionContextTasks
def executionContext: ExecutionContext
Inherited from
ExecutionContextTasks

Concrete fields

val environment: ExecutionContext