WrappedTask

scala.collection.parallel.Tasks.WrappedTask
trait WrappedTask[R, +Tp]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait AWSTWrappedTask[R, Tp]
class AWSFJTWrappedTask[R, Tp]
trait FJTWrappedTask[R, Tp]

Members list

Value members

Abstract methods

def compute(): Unit

Code that gets called after the task gets started - it may spawn other tasks instead of calling leaf.

Code that gets called after the task gets started - it may spawn other tasks instead of calling leaf.

Attributes

def split: Seq[WrappedTask[R, Tp]]
def start(): Unit

Start task.

Start task.

Attributes

def sync(): Unit

Wait for task to finish.

Wait for task to finish.

Attributes

Try to cancel the task.

Try to cancel the task.

Attributes

Returns

true if cancellation is successful.

Concrete methods

def release(): Unit

If the task has been cancelled successfully, those syncing on it may automatically be notified, depending on the implementation. If they aren't, this release method should be called after processing the cancelled task.

If the task has been cancelled successfully, those syncing on it may automatically be notified, depending on the implementation. If they aren't, this release method should be called after processing the cancelled task.

This method may be overridden.

Attributes

Abstract fields

val body: Task[R, Tp]

the body of this task - what it executes, how it gets split and how results are merged.

the body of this task - what it executes, how it gets split and how results are merged.

Attributes