beamly.core.lang.future.extensions

FutureOptionW

final class FutureOptionW[+A] extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FutureOptionW
  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 FutureOptionW(underlying: Future[Option[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 flatMapOpt[B](f: (A) ⇒ Future[Option[B]])(implicit executor: ExecutionContext): Future[Option[B]]

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

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

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

    Maps some value to new future option.

    Maps some value to new future option. {{ Future.successful(Some(2)) mapOpt (_ + 1) == Future { 3 } }}

    B

    Return type

    f

    Function which maps some value to new value

    executor

    The execution context

    returns

    New future option with mapped some value

    Annotations
    @inline()
  9. def orElse[B >: A](other: ⇒ Future[Option[B]])(implicit executor: ExecutionContext): Future[Option[B]]

    If this future value is none, then use the other future value.

    If this future value is none, then use the other future value.

    B

    The new return type

    other

    Function used to get another future option, if the original was a future none

    executor

    The execution context

    returns

    A future option based on the original or other future calculation

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

    Definition Classes
    Any
  11. val underlying: Future[Option[A]]

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Ungrouped