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
Cancelable, Serializable, Future[A], Awaitable[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CancelableFuture
  2. Cancelable
  3. Serializable
  4. Future
  5. Awaitable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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(classOf[java.util.concurrent.TimeoutException]) @throws(classOf[java.lang.InterruptedException])
  5. abstract def result(atMost: Duration)(implicit permit: CanAwait): A
    Definition Classes
    Awaitable
    Annotations
    @throws(classOf[java.util.concurrent.TimeoutException]) @throws(classOf[java.lang.InterruptedException])
  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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  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: AnyRef): 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. final def flatMap[S](f: (A) => Future[S])(implicit executor: ExecutionContext): CancelableFuture[S]
    Definition Classes
    CancelableFuture → 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() @HotSpotIntrinsicCandidate()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def map[S](f: (A) => S)(implicit executor: ExecutionContext): CancelableFuture[S]
    Definition Classes
    CancelableFuture → Future
  20. final def mapTo[S](implicit tag: ClassTag[S]): CancelableFuture[S]
    Definition Classes
    CancelableFuture → Future
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def recover[U >: A](pf: PartialFunction[Throwable, U])(implicit executor: ExecutionContext): CancelableFuture[U]
    Definition Classes
    CancelableFuture → Future
  25. final def recoverWith[U >: A](pf: PartialFunction[Throwable, Future[U]])(implicit executor: ExecutionContext): CancelableFuture[U]
    Definition Classes
    CancelableFuture → Future
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. def transform[S](f: (Try[A]) => Try[S])(implicit executor: ExecutionContext): CancelableFuture[S]
    Definition Classes
    CancelableFuture → Future
  29. final def transform[S](s: (A) => S, f: (Throwable) => Throwable)(implicit executor: ExecutionContext): CancelableFuture[S]
    Definition Classes
    CancelableFuture → Future
  30. def transformWith[S](f: (Try[A]) => Future[S])(implicit executor: ExecutionContext): CancelableFuture[S]
    Definition Classes
    CancelableFuture → Future
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def withFilter(p: (A) => Boolean)(implicit executor: ExecutionContext): Future[A]
    Definition Classes
    Future
  35. final def zip[U](that: Future[U]): CancelableFuture[(A, U)]
    Definition Classes
    CancelableFuture → Future
  36. 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
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Cancelable

Inherited from Serializable

Inherited from Future[A]

Inherited from Awaitable[A]

Inherited from AnyRef

Inherited from Any

Ungrouped