Packages

trait WorkerTask[A] extends Future[A]

This class acts as a Future, and contains some utility method for flow control or information about the task that is being executed.

Linear Supertypes
Future[A], Awaitable[A], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WorkerTask
  2. Future
  3. Awaitable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def addOnNextThrow(callback: (Option[Throwable]) => Unit): Unit
  2. abstract def continue(): Unit
  3. abstract def derivate(): Try[A]
    Annotations
    @workerExecution()
  4. abstract def derivateForAtLeast(millis: Long): Option[Try[A]]
    Annotations
    @workerExecution()
  5. abstract def getWorker: Worker
  6. abstract def isCompleted: Boolean
    Definition Classes
    Future
  7. abstract def isExecuting: Boolean

    true if the worker thread is running the task or if the worker is executing other tasks while this one is paused

  8. abstract def isPaused: Boolean

    true if the task has been paused

  9. abstract def isRunning: Boolean

    true if the worker is running this task

  10. abstract def join(millis: Long): Option[Try[A]]
  11. abstract def join(): Try[A]
  12. abstract def lock: Lock
  13. abstract def onComplete[U](f: (Try[A]) => U)(implicit executor: ExecutionContext): Unit
    Definition Classes
    Future
  14. abstract val parent: Option[WorkerTask[_]]
  15. abstract def ready(atMost: Duration)(implicit permit: CanAwait): WorkerTask.this.type
    Definition Classes
    Awaitable
    Annotations
    @throws(classOf[java.util.concurrent.TimeoutException]) @throws(classOf[java.lang.InterruptedException])
  16. abstract def result(atMost: Duration)(implicit permit: CanAwait): A
    Definition Classes
    Awaitable
    Annotations
    @throws(classOf[java.util.concurrent.TimeoutException]) @throws(classOf[java.lang.InterruptedException])
  17. abstract val taskID: Int

    The taskID this class

  18. abstract def throwNextThrowable(): Unit
  19. abstract def transform[S](f: (Try[A]) => Try[S])(implicit executor: ExecutionContext): Future[S]
    Definition Classes
    Future
  20. abstract def transformWith[S](f: (Try[A]) => Future[S])(implicit executor: ExecutionContext): Future[S]
    Definition Classes
    Future
  21. abstract def value: Option[Try[A]]
    Definition Classes
    Future

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def andThen[U](pf: PartialFunction[Try[A], U])(implicit executor: ExecutionContext): Future[A]
    Definition Classes
    Future
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. def collect[S](pf: PartialFunction[A, S])(implicit executor: ExecutionContext): Future[S]
    Definition Classes
    Future
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def failed: Future[Throwable]
    Definition Classes
    Future
  11. def fallbackTo[U >: A](that: Future[U]): Future[U]
    Definition Classes
    Future
  12. def filter(p: (A) => Boolean)(implicit executor: ExecutionContext): Future[A]
    Definition Classes
    Future
  13. def flatMap[S](f: (A) => Future[S])(implicit executor: ExecutionContext): Future[S]
    Definition Classes
    Future
  14. def flatten[S](implicit ev: <:<[A, Future[S]]): Future[S]
    Definition Classes
    Future
  15. def foreach[U](f: (A) => U)(implicit executor: ExecutionContext): Unit
    Definition Classes
    Future
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def map[S](f: (A) => S)(implicit executor: ExecutionContext): Future[S]
    Definition Classes
    Future
  20. def mapTo[S](implicit tag: ClassTag[S]): Future[S]
    Definition Classes
    Future
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  24. def recover[U >: A](pf: PartialFunction[Throwable, U])(implicit executor: ExecutionContext): Future[U]
    Definition Classes
    Future
  25. def recoverWith[U >: A](pf: PartialFunction[Throwable, Future[U]])(implicit executor: ExecutionContext): Future[U]
    Definition Classes
    Future
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. def transform[S](s: (A) => S, f: (Throwable) => Throwable)(implicit executor: ExecutionContext): Future[S]
    Definition Classes
    Future
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def withFilter(p: (A) => Boolean)(implicit executor: ExecutionContext): Future[A]
    Definition Classes
    Future
  33. def zip[U](that: Future[U]): Future[(A, U)]
    Definition Classes
    Future
  34. def zipWith[U, R](that: Future[U])(f: (A, U) => R)(implicit executor: ExecutionContext): Future[R]
    Definition Classes
    Future

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Future[A]

Inherited from Awaitable[A]

Inherited from AnyRef

Inherited from Any

Ungrouped