net.sf.asyncobjects.asyncscala.control.tasks

Task

class Task extends AnyRef

The task context. It is used by the user for scheduling the subtasks. The context is available only for duration of the task execution, it is suspended until subtasks are not complete.

The subtasks have a different task contexts. And subtasks might be executed in different vats. So be careful with sharing objects between subtasks. Also until subtasks are finished, the current task is suspended and cannot create new subtasks.

Attributes
abstract
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Task
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Task ()

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  9. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def external [T] (body: ⇒ Promise[T]): Promise[T]

    Execute code that invokes external resources.

    Execute code that invokes external resources. The method notifies task tree, that the task will temporary stop being active in task tree, so it is possible to schedule other tasks until this task will resume.

    body

    the action that requires interaction with external resources

    returns

    a promise that resolves when body finishes and when a new task slot is available

  11. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def fork [T] (body: (Task) ⇒ Promise[T]): TaskForkBuilder[T]

    Start constructing the task fork.

    Start constructing the task fork. Note that bodies are executed with task argument different from the current task and while bodies are executed, it is not possible to for

    body

    the first body of the fork

    returns

    the fork constructor

  13. def forkFor [I, T] (collection: Iterable[I])(body: (Task, I) ⇒ Promise[T]): TaskForkForBuilder[I, T]

    Start forkFor creation

    Start forkFor creation

    collection

    the collection of items

    body

    the body that translates individual items

    returns

    the builder that allows specifying a folding rule

  14. def forkForUnit [I, T] (collection: Iterable[I])(body: (Task, I) ⇒ Promise[T]): Promise[Unit]

    Ensure that all branches are executed

    Ensure that all branches are executed

    collection

    the collection of items

    body

    the body that translates individual items

    returns

    a promise that resolves when iteration finishes

  15. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  16. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  17. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  18. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  19. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  20. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  21. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  22. def toString (): String

    Definition Classes
    AnyRef → Any
  23. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  24. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  25. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any