final class FastFuture[A] extends AnyVal
Provides alternative implementations of the basic transformation operations defined on scala.concurrent.Future, which try to avoid scheduling to an scala.concurrent.ExecutionContext if possible, i.e. if the given future value is already present.
- Source
- FastFuture.scala
Linear Supertypes
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- FastFuture
- AnyVal
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from FastFuture[A] toany2stringadd[FastFuture[A]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (FastFuture[A], B)
- Implicit
- This member is added by an implicit conversion from FastFuture[A] toArrowAssoc[FastFuture[A]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def ensuring(cond: (FastFuture[A]) => Boolean, msg: => Any): FastFuture[A]
- Implicit
- This member is added by an implicit conversion from FastFuture[A] toEnsuring[FastFuture[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (FastFuture[A]) => Boolean): FastFuture[A]
- Implicit
- This member is added by an implicit conversion from FastFuture[A] toEnsuring[FastFuture[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): FastFuture[A]
- Implicit
- This member is added by an implicit conversion from FastFuture[A] toEnsuring[FastFuture[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): FastFuture[A]
- Implicit
- This member is added by an implicit conversion from FastFuture[A] toEnsuring[FastFuture[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def filter(pred: (A) => Boolean)(implicit executor: ExecutionContext): Future[A]
- def flatMap[B](f: (A) => Future[B])(implicit ec: ExecutionContext): Future[B]
- def foreach(f: (A) => Unit)(implicit ec: ExecutionContext): Unit
- val future: Future[A]
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[B](f: (A) => B)(implicit ec: ExecutionContext): Future[B]
- def recover[B >: A](pf: PartialFunction[Throwable, B])(implicit ec: ExecutionContext): Future[B]
- def recoverWith[B >: A](pf: PartialFunction[Throwable, Future[B]])(implicit ec: ExecutionContext): Future[B]
- def toString(): String
- Definition Classes
- Any
- def transformWith[B](s: (A) => Future[B], f: (Throwable) => Future[B])(implicit executor: ExecutionContext): Future[B]
- def transformWith[B](f: (Try[A]) => Future[B])(implicit executor: ExecutionContext): Future[B]
Deprecated Value Members
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from FastFuture[A] toStringFormat[FastFuture[A]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (FastFuture[A], B)
- Implicit
- This member is added by an implicit conversion from FastFuture[A] toArrowAssoc[FastFuture[A]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.