Trait/Object

monix.execution

CancelableFuture

Related Docs: object CancelableFuture | package execution

Permalink

trait CancelableFuture[+T] extends Future[T] with Cancelable

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

Source
CancelableFuture.scala
Linear Supertypes
Cancelable, Serializable, Serializable, Future[T], Awaitable[T], AnyRef, Any
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

    Permalink

    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

    Permalink
    Definition Classes
    Future
  3. abstract def onComplete[U](f: (Try[T]) ⇒ U)(implicit executor: ExecutionContext): Unit

    Permalink
    Definition Classes
    Future
  4. abstract def ready(atMost: Duration)(implicit permit: CanAwait): CancelableFuture.this.type

    Permalink
    Definition Classes
    Awaitable
    Annotations
    @throws( ... ) @throws( ... )
  5. abstract def result(atMost: Duration)(implicit permit: CanAwait): T

    Permalink
    Definition Classes
    Awaitable
    Annotations
    @throws( classOf[java.lang.Exception] )
  6. abstract def value: Option[Try[T]]

    Permalink
    Definition Classes
    Future

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def andThen[U](pf: PartialFunction[Try[T], U])(implicit executor: ExecutionContext): CancelableFuture[T]

    Permalink
    Definition Classes
    CancelableFuture → Future
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def collect[S](pf: PartialFunction[T, S])(implicit executor: ExecutionContext): CancelableFuture[S]

    Permalink
    Definition Classes
    CancelableFuture → Future
  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def failed: CancelableFuture[Throwable]

    Permalink
    Definition Classes
    CancelableFuture → Future
  11. def fallbackTo[U >: T](that: Future[U]): CancelableFuture[U]

    Permalink
    Definition Classes
    CancelableFuture → Future
  12. def filter(p: (T) ⇒ Boolean)(implicit executor: ExecutionContext): CancelableFuture[T]

    Permalink
    Definition Classes
    CancelableFuture → Future
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def flatMap[S](f: (T) ⇒ Future[S])(implicit executor: ExecutionContext): CancelableFuture[S]

    Permalink
    Definition Classes
    CancelableFuture → Future
  15. def foreach[U](f: (T) ⇒ U)(implicit executor: ExecutionContext): Unit

    Permalink
    Definition Classes
    Future
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def map[S](f: (T) ⇒ S)(implicit executor: ExecutionContext): CancelableFuture[S]

    Permalink
    Definition Classes
    CancelableFuture → Future
  20. def mapTo[S](implicit tag: ClassTag[S]): CancelableFuture[S]

    Permalink
    Definition Classes
    CancelableFuture → Future
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. def onFailure[U](pf: PartialFunction[Throwable, U])(implicit executor: ExecutionContext): Unit

    Permalink
    Definition Classes
    Future
  25. def onSuccess[U](pf: PartialFunction[T, U])(implicit executor: ExecutionContext): Unit

    Permalink
    Definition Classes
    Future
  26. def recover[U >: T](pf: PartialFunction[Throwable, U])(implicit executor: ExecutionContext): CancelableFuture[U]

    Permalink
    Definition Classes
    CancelableFuture → Future
  27. def recoverWith[U >: T](pf: PartialFunction[Throwable, Future[U]])(implicit executor: ExecutionContext): CancelableFuture[U]

    Permalink
    Definition Classes
    CancelableFuture → Future
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. def transform[S](f: (Try[T]) ⇒ Try[S])(implicit executor: ExecutionContext): CancelableFuture[S]

    Permalink
  31. def transform[S](s: (T) ⇒ S, f: (Throwable) ⇒ Throwable)(implicit executor: ExecutionContext): CancelableFuture[S]

    Permalink
    Definition Classes
    CancelableFuture → Future
  32. def transformWith[S](f: (Try[T]) ⇒ Future[S])(implicit executor: ExecutionContext): CancelableFuture[S]

    Permalink
  33. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def withFilter(p: (T) ⇒ Boolean)(implicit executor: ExecutionContext): Future[T]

    Permalink
    Definition Classes
    Future
  37. def zip[U](that: Future[U]): CancelableFuture[(T, U)]

    Permalink
    Definition Classes
    CancelableFuture → Future

Inherited from Cancelable

Inherited from Serializable

Inherited from Serializable

Inherited from Future[T]

Inherited from Awaitable[T]

Inherited from AnyRef

Inherited from Any

Ungrouped