CancelableFuture

abstract class CancelableFuture[+A](val future: Future[A]) extends Future[A]
trait Future[A]
trait Awaitable[A]
class Object
trait Matchable
class Any

Value members

Abstract methods

Immediately cancels the operation and returns a scala.concurrent.Future containing the result

Immediately cancels the operation and returns a scala.concurrent.Future containing the result

Concrete methods

final def isCompleted: Boolean
final def onComplete[U](f: Try[A] => U)(implicit executor: ExecutionContext): Unit
final def ready(atMost: Duration)(implicit permit: CanAwait): CancelableFuture[A]
final def result(atMost: Duration)(implicit permit: CanAwait): A
final def value: Option[Try[A]]

Inherited methods

def andThen[U](pf: PartialFunction[Try[A], U])(implicit executor: ExecutionContext): Future[A]
Inherited from:
Future
def collect[S](pf: PartialFunction[A, S])(implicit executor: ExecutionContext): Future[S]
Inherited from:
Future
Inherited from:
Future
def fallbackTo[U >: A](that: Future[U]): Future[U]
Inherited from:
Future
def filter(p: A => Boolean)(implicit executor: ExecutionContext): Future[A]
Inherited from:
Future
def flatMap[S](f: A => Future[S])(implicit executor: ExecutionContext): Future[S]
Inherited from:
Future
def flatten[S](implicit ev: A <:< Future[S]): Future[S]
Inherited from:
Future
def foreach[U](f: A => U)(implicit executor: ExecutionContext): Unit
Inherited from:
Future
def map[S](f: A => S)(implicit executor: ExecutionContext): Future[S]
Inherited from:
Future
def mapTo[S](implicit tag: ClassTag[S]): Future[S]
Inherited from:
Future
def recover[U >: A](pf: PartialFunction[Throwable, U])(implicit executor: ExecutionContext): Future[U]
Inherited from:
Future
def recoverWith[U >: A](pf: PartialFunction[Throwable, Future[U]])(implicit executor: ExecutionContext): Future[U]
Inherited from:
Future
def transform[S](f: Try[A] => Try[S])(implicit executor: ExecutionContext): Future[S]
Inherited from:
FutureTransformCompat
def transform[S](s: A => S, f: Throwable => Throwable)(implicit executor: ExecutionContext): Future[S]
Inherited from:
Future
def transformWith[S](f: Try[A] => Future[S])(implicit executor: ExecutionContext): Future[S]
Inherited from:
FutureTransformCompat
final def withFilter(p: A => Boolean)(implicit executor: ExecutionContext): Future[A]
Inherited from:
Future
def zip[U](that: Future[U]): Future[(A, U)]
Inherited from:
Future
def zipWith[U, R](that: Future[U])(f: (A, U) => R)(implicit executor: ExecutionContext): Future[R]
Inherited from:
Future

Concrete fields

val future: Future[A]