ForkJoinTaskSupport

scala.collection.parallel.ForkJoinTaskSupport
class ForkJoinTaskSupport(val environment: ForkJoinPool) extends TaskSupport, AdaptiveWorkStealingForkJoinTasks

A task support that uses a fork join pool to schedule tasks.

Attributes

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

Members list

Type members

Inherited classlikes

class AWSFJTWrappedTask[R, Tp](val body: Task[R, Tp]) extends FJTWrappedTask[R, Tp], AWSTWrappedTask[R, Tp]

Attributes

Inherited from:
AdaptiveWorkStealingForkJoinTasks
Supertypes
trait AWSTWrappedTask[R, Tp]
trait FJTWrappedTask[R, Tp]
trait WrappedTask[R, Tp]
class RecursiveAction
class ForkJoinTask[Void]
trait Serializable
trait Future[Void]
class Object
trait Matchable
class Any
Show all
trait AWSTWrappedTask[R, Tp] extends WrappedTask[R, Tp]

Attributes

Inherited from:
AdaptiveWorkStealingTasks
Supertypes
trait WrappedTask[R, Tp]
class Object
trait Matchable
class Any
Known subtypes
class AWSFJTWrappedTask[R, Tp]
trait FJTWrappedTask[R, +Tp] extends RecursiveAction, WrappedTask[R, Tp]

Attributes

Inherited from:
ForkJoinTasks
Supertypes
trait WrappedTask[R, Tp]
class RecursiveAction
class ForkJoinTask[Void]
trait Serializable
trait Future[Void]
class Object
trait Matchable
class Any
Show all
Known subtypes
class AWSFJTWrappedTask[R, Tp]
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 does not wait for it to finish - instead returns a future.

Executes a task and does not wait for it to finish - instead returns a future.

If the current thread is a fork/join worker thread, the task's fork method will be invoked. Otherwise, the task will be executed on the fork/join pool.

Attributes

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

Executes a task on a fork/join pool and waits for it to finish. Returns its result when it does.

Executes a task on a fork/join pool and waits for it to finish. Returns its result when it does.

If the current thread is a fork/join worker thread, the task's fork method will be invoked. Otherwise, the task will be executed on the fork/join pool.

Attributes

Returns

the result of the task

Inherited from:
ForkJoinTasks
def forkJoinPool: ForkJoinPool

The fork/join pool of this collection.

The fork/join pool of this collection.

Attributes

Inherited from:
ForkJoinTasks
def newWrappedTask[R, Tp](b: Task[R, Tp]): AWSFJTWrappedTask[R, Tp]

Attributes

Inherited from:
AdaptiveWorkStealingForkJoinTasks

Retrieves the parallelism level of the task execution environment.

Retrieves the parallelism level of the task execution environment.

Attributes

Inherited from:
ForkJoinTasks

Concrete fields

val environment: ForkJoinPool

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

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

Attributes