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
- Alphabetic
- By Inheritance
- CancelableFuture
- Cancelable
- Serializable
- Future
- Awaitable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- 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
- abstract def isCompleted: Boolean
- Definition Classes
- Future
- abstract def onComplete[U](f: (Try[A]) => U)(implicit executor: ExecutionContext): Unit
- Definition Classes
- Future
- 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])
- abstract def result(atMost: Duration)(implicit permit: CanAwait): A
- Definition Classes
- Awaitable
- Annotations
- @throws(classOf[java.util.concurrent.TimeoutException]) @throws(classOf[java.lang.InterruptedException])
- abstract def value: Option[Try[A]]
- Definition Classes
- Future
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def andThen[U](pf: PartialFunction[Try[A], U])(implicit executor: ExecutionContext): CancelableFuture[A]
- Definition Classes
- CancelableFuture → Future
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def collect[S](pf: PartialFunction[A, S])(implicit executor: ExecutionContext): CancelableFuture[S]
- Definition Classes
- CancelableFuture → Future
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def failed: CancelableFuture[Throwable]
- Definition Classes
- CancelableFuture → Future
- final def fallbackTo[U >: A](that: Future[U]): CancelableFuture[U]
- Definition Classes
- CancelableFuture → Future
- final def filter(p: (A) => Boolean)(implicit executor: ExecutionContext): CancelableFuture[A]
- Definition Classes
- CancelableFuture → Future
- final def flatMap[S](f: (A) => Future[S])(implicit executor: ExecutionContext): CancelableFuture[S]
- Definition Classes
- CancelableFuture → Future
- def flatten[S](implicit ev: <:<[A, Future[S]]): Future[S]
- Definition Classes
- Future
- def foreach[U](f: (A) => U)(implicit executor: ExecutionContext): Unit
- Definition Classes
- Future
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def map[S](f: (A) => S)(implicit executor: ExecutionContext): CancelableFuture[S]
- Definition Classes
- CancelableFuture → Future
- final def mapTo[S](implicit tag: ClassTag[S]): CancelableFuture[S]
- Definition Classes
- CancelableFuture → Future
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def recover[U >: A](pf: PartialFunction[Throwable, U])(implicit executor: ExecutionContext): CancelableFuture[U]
- Definition Classes
- CancelableFuture → Future
- final def recoverWith[U >: A](pf: PartialFunction[Throwable, Future[U]])(implicit executor: ExecutionContext): CancelableFuture[U]
- Definition Classes
- CancelableFuture → Future
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def transform[S](f: (Try[A]) => Try[S])(implicit executor: ExecutionContext): CancelableFuture[S]
- Definition Classes
- CancelableFuture → Future
- final def transform[S](s: (A) => S, f: (Throwable) => Throwable)(implicit executor: ExecutionContext): CancelableFuture[S]
- Definition Classes
- CancelableFuture → Future
- def transformWith[S](f: (Try[A]) => Future[S])(implicit executor: ExecutionContext): CancelableFuture[S]
- Definition Classes
- CancelableFuture → Future
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def withFilter(p: (A) => Boolean)(implicit executor: ExecutionContext): Future[A]
- Definition Classes
- Future
- final def zip[U](that: Future[U]): CancelableFuture[(A, U)]
- Definition Classes
- CancelableFuture → Future
- def zipWith[U, R](that: Future[U])(f: (A, U) => R)(implicit executor: ExecutionContext): Future[R]
- Definition Classes
- Future
This is the API documentation for the Monix library.
Package Overview
monix.execution exposes lower level primitives for dealing with asynchronous execution:
Atomic
types, as alternative tojava.util.concurrent.atomic
monix.catnap exposes pure abstractions built on top of the Cats-Effect type classes:
monix.eval is for dealing with evaluation of results, thus exposing Task and Coeval.
monix.reactive exposes the
Observable
pattern:Observable
implementationsmonix.tail exposes Iterant for purely functional pull based streaming:
Batch
andBatchCursor
, the alternatives to Scala'sIterable
andIterator
respectively that we are using within Iterant's encodingYou can control evaluation with type you choose - be it Task, Coeval, cats.effect.IO or your own as long as you provide correct cats-effect or cats typeclass instance.