Packages

trait ThreadPoolTasks extends Tasks

An implementation of tasks objects based on the Java thread pooling API.

Annotations
@deprecated
Deprecated

(Since version 2.11.0) use ForkJoinTasks instead

Source
Tasks.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ThreadPoolTasks
  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 Runnable with ThreadPoolTasks.WrappedTask[R, Tp]

Abstract Value Members

  1. abstract val environment: ThreadPoolExecutor

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

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

    Definition Classes
    ThreadPoolTasksTasks

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
    ThreadPoolTasksTasks
  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
    ThreadPoolTasksTasks
  3. def executor: ThreadPoolExecutor
  4. def parallelismLevel: Int

    Retrieves the parallelism level of the task execution environment.

    Retrieves the parallelism level of the task execution environment.

    Definition Classes
    ThreadPoolTasksTasks
  5. def queue: LinkedBlockingQueue[Runnable]
  6. def toParArray: ParArray[T]
    Implicit
    This member is added by an implicit conversion from ThreadPoolTasks to CollectionsHaveToParArray[ThreadPoolTasks, T] performed by method CollectionsHaveToParArray in scala.collection.parallel. This conversion will take place only if an implicit value of type (ThreadPoolTasks) ⇒ GenTraversableOnce[T] is in scope.
    Definition Classes
    CollectionsHaveToParArray
  7. val totaltasks: Int
    Annotations
    @volatile()