Packages

sealed abstract class CancelableFuture[+A] extends Future[A] with Cancelable

Represents an asynchronous computation that can be canceled as long as it isn't complete.

Self Type
CancelableFuture[A]
Source
CancelableFuture.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CancelableFuture
  2. Cancelable
  3. Serializable
  4. Serializable
  5. Future
  6. Awaitable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def cancel(): Unit

    Cancels the unit of work represented by this reference.

    Cancels the unit of work represented by this reference.

    Guaranteed idempotency - calling it multiple times should have the same side-effect as calling it only once. Implementations of this method should also be thread-safe.

    Definition Classes
    Cancelable
  2. abstract def isCompleted: Boolean
    Definition Classes
    Future
  3. abstract def onComplete[U](f: (Try[A]) ⇒ U)(implicit executor: ExecutionContext): Unit
    Definition Classes
    Future
  4. abstract def ready(atMost: Duration)(implicit permit: CanAwait): CancelableFuture.this.type
    Definition Classes
    Awaitable
    Annotations
    @throws( ... ) @throws( ... )
  5. abstract def result(atMost: Duration)(implicit permit: CanAwait): A
    Definition Classes
    Awaitable
    Annotations
    @throws( classOf[java.lang.Exception] )
  6. 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. final def andThen[U](pf: PartialFunction[Try[A], U])(implicit executor: ExecutionContext): CancelableFuture[A]
    Definition Classes
    CancelableFuture → Future
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. final def collect[S](pf: PartialFunction[A, S])(implicit executor: ExecutionContext): CancelableFuture[S]
    Definition Classes
    CancelableFuture → Future
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. final def failed: CancelableFuture[Throwable]
    Definition Classes
    CancelableFuture → Future
  11. final def fallbackTo[U >: A](that: Future[U]): CancelableFuture[U]
    Definition Classes
    CancelableFuture → Future
  12. final def filter(p: (A) ⇒ Boolean)(implicit executor: ExecutionContext): CancelableFuture[A]
    Definition Classes
    CancelableFuture → Future
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def flatMap[S](f: (A) ⇒ Future[S])(implicit executor: ExecutionContext): CancelableFuture[S]
    Definition Classes
    CancelableFuture → Future
  15. def flatten[S](implicit ev: <:<[A, Future[S]]): Future[S]
    Definition Classes
    Future
  16. def foreach[U](f: (A) ⇒ U)(implicit executor: ExecutionContext): Unit
    Definition Classes
    Future
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def map[S](f: (A) ⇒ S)(implicit executor: ExecutionContext): CancelableFuture[S]
    Definition Classes
    CancelableFuture → Future
  21. final def mapTo[S](implicit tag: ClassTag[S]): CancelableFuture[S]
    Definition Classes
    CancelableFuture → Future
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def recover[U >: A](pf: PartialFunction[Throwable, U])(implicit executor: ExecutionContext): CancelableFuture[U]
    Definition Classes
    CancelableFuture → Future
  26. final def recoverWith[U >: A](pf: PartialFunction[Throwable, Future[U]])(implicit executor: ExecutionContext): CancelableFuture[U]
    Definition Classes
    CancelableFuture → Future
  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. def transform[S](f: (Try[A]) ⇒ Try[S])(implicit executor: ExecutionContext): CancelableFuture[S]
    Definition Classes
    CancelableFuture → Future
  30. final def transform[S](s: (A) ⇒ S, f: (Throwable) ⇒ Throwable)(implicit executor: ExecutionContext): CancelableFuture[S]
    Definition Classes
    CancelableFuture → Future
  31. def transformWith[S](f: (Try[A]) ⇒ Future[S])(implicit executor: ExecutionContext): CancelableFuture[S]
    Definition Classes
    CancelableFuture → Future
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  35. final def withFilter(p: (A) ⇒ Boolean)(implicit executor: ExecutionContext): Future[A]
    Definition Classes
    Future
  36. final def zip[U](that: Future[U]): CancelableFuture[(A, U)]
    Definition Classes
    CancelableFuture → Future
  37. def zipWith[U, R](that: Future[U])(f: (A, U) ⇒ R)(implicit executor: ExecutionContext): Future[R]
    Definition Classes
    Future

Deprecated Value Members

  1. def onFailure[U](pf: PartialFunction[Throwable, U])(implicit executor: ExecutionContext): Unit
    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.0) use onComplete or failed.foreach instead (keep in mind that they take total rather than partial functions)

  2. def onSuccess[U](pf: PartialFunction[A, U])(implicit executor: ExecutionContext): Unit
    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.0) use foreach or onComplete instead (keep in mind that they take total rather than partial functions)

Inherited from Cancelable

Inherited from Serializable

Inherited from Serializable

Inherited from Future[A]

Inherited from Awaitable[A]

Inherited from AnyRef

Inherited from Any

Ungrouped