org.programmiersportgruppe.scala.commons.basics.Futures

AugmentedFuture

implicit final class AugmentedFuture[A] extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AugmentedFuture
  2. AnyVal
  3. NotNull
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AugmentedFuture(self: Future[A])

Value Members

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

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

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

    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  6. def handleFailure(action: (Throwable) ⇒ Unit)(implicit executor: ExecutionContext): Future[A]

    Causes an asynchronous side effect in case the future fails.

    Causes an asynchronous side effect in case the future fails.

    Note that the original future is returned, meaning that it will be completed before the action has completed.

  7. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  8. def mapTry[B](f: (Try[A]) ⇒ B)(implicit executor: ExecutionContext): Future[B]

    Map over the inner Try[A] completion value of the future, rather than the A success value like the normal scala.concurrent.Future.map method.

  9. val self: Future[A]

  10. def toOption(implicit executor: ExecutionContext): Future[Option[A]]

    Converts the "inner Try" of the Future to an option, wrapping successful values in Some and replacing failures with None.

    Converts the "inner Try" of the Future to an option, wrapping successful values in Some and replacing failures with None.

    This is useful if the result will just not be used in the case of an error.

  11. def toString(): String

    Definition Classes
    Any
  12. def transformWith[B](f: (Try[A]) ⇒ Future[B])(implicit executor: ExecutionContext): Future[B]

    Flat-map over the inner Try[A] completion value of the future, rather than the A success value like the normal scala.concurrent.Future.flatMap method.

    Flat-map over the inner Try[A] completion value of the future, rather than the A success value like the normal scala.concurrent.Future.flatMap method.

    Note that this method is provided by scala.concurrent.Future starting in Scala 2.12.

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Ungrouped