Class

org.programmiersportgruppe.scala.commons.basics.Futures

AugmentedFuture

Related Doc: package Futures

Permalink

implicit final class AugmentedFuture[A] extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AugmentedFuture
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

Value Members

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

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

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

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

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

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

    Permalink

    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

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

    Permalink

    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]

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

    Permalink

    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

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

    Permalink

    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 Any

Ungrouped