Packages

t

scala.collection.parallel

ExecutionContextTasks

trait ExecutionContextTasks extends Tasks

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.

Source
Tasks.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExecutionContextTasks
  2. Tasks
  3. AnyRef
  4. Any
Implicitly
  1. by CollectionsHaveToParArray
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait WrappedTask[R, +Tp] extends AnyRef
    Definition Classes
    Tasks

Abstract Value Members

  1. abstract val environment: ExecutionContext

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

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

    Definition Classes
    ExecutionContextTasksTasks

Concrete Value Members

  1. def execute[R, Tp](task: Task[R, Tp]): () ⇒ R

    Executes a task and returns a future.

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

    Definition Classes
    ExecutionContextTasksTasks
  2. def executeAndWaitResult[R, Tp](task: Task[R, Tp]): R

    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.

    Definition Classes
    ExecutionContextTasksTasks
  3. def executionContext: ExecutionContext
  4. def parallelismLevel: Int

    Retrieves the parallelism level of the task execution environment.

    Retrieves the parallelism level of the task execution environment.

    Definition Classes
    ExecutionContextTasksTasks
  5. def toParArray: ParArray[T]
    Implicit
    This member is added by an implicit conversion from ExecutionContextTasks to CollectionsHaveToParArray[ExecutionContextTasks, T] performed by method CollectionsHaveToParArray in scala.collection.parallel. This conversion will take place only if an implicit value of type (ExecutionContextTasks) ⇒ GenTraversableOnce[T] is in scope.
    Definition Classes
    CollectionsHaveToParArray