beamly.core.lang.future.extensions

FutureW

final class FutureW[+A] extends AnyVal

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

Instance Constructors

  1. new FutureW(underlying: 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 await(duration: Duration): Future[A]

    returns

    The scala.concurrent.Future after awaiting a result

    Annotations
    @inline()
  6. def await(): Future[A]

    returns

    The scala.concurrent.Future after awaiting a result

    Annotations
    @inline()
  7. def flatFold[X](failed: (Throwable) ⇒ Future[X], successful: (A) ⇒ Future[X])(implicit ec: ExecutionContext): Future[X]

    Maps successful or failed values into a new scala.concurrent.Future Catches any exceptions from conversion and returns failed future.

    Maps successful or failed values into a new scala.concurrent.Future Catches any exceptions from conversion and returns failed future.

    X

    The new success type

    failed

    Function for converting a scala.Throwable to a successful value

    successful

    Function for converting a successful value to a new success

    ec

    The execution context

    returns

    scala.concurrent.Future containing the new successful value

    Annotations
    @inline()
  8. def flatMapTry[B](f: (Try[A]) ⇒ Future[B])(implicit executor: ExecutionContext): Future[B]

    Maps a scala.util.Try to a new scala.concurrent.Future.

    B

    The return type

    f

    Function which maps the scala.util.Try to a value

    executor

    Execution context

    returns

    New scala.concurrent.Future

    Annotations
    @inline()
  9. def fold[X](failed: (Throwable) ⇒ X, successful: (A) ⇒ X)(implicit ec: ExecutionContext): Future[X]

    Maps successful or failed values into a new scala.concurrent.Future Catches any exceptions from conversion and returns failed future.

    Maps successful or failed values into a new scala.concurrent.Future Catches any exceptions from conversion and returns failed future.

    X

    The new success type

    failed

    Function for converting a scala.Throwable to a successful value

    successful

    Function for converting a successful value to a new success

    ec

    The execution context

    returns

    scala.concurrent.Future containing the new successful value

    Annotations
    @inline()
  10. def get(duration: Duration): A

    duration

    The amount of time to wait for the future to return

    returns

    The result from the scala.concurrent.Future after awaiting a result

    Annotations
    @inline()
  11. def get(): A

    returns

    The result from the scala.concurrent.Future after awaiting a result

    Annotations
    @inline()
  12. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  13. final def isInstanceOf[T0]: Boolean

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

    Maps a scala.util.Try to a value.

    Maps a scala.util.Try to a value.

    B

    The return type

    f

    Function which maps the scala.util.Try to a value

    executor

    Execution context

    returns

    New scala.concurrent.Future

    Annotations
    @inline()
  15. def toString(): String

    Definition Classes
    Any
  16. val underlying: Future[A]

Inherited from AnyVal

Inherited from Any

Ungrouped