Class

macroid

UiFuture

Related Doc: package macroid

Permalink

final case class UiFuture[T](future: Future[T]) extends AnyVal with Product with Serializable

Helpers to run UI actions as Future callbacks

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyVal, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. UiFuture
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyVal
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new UiFuture(future: Future[T])

    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 flatMapUi[S](f: Function[T, Ui[Future[S]]]): Future[S]

    Permalink

    Same as flatMap, but performed on the UI thread

    Same as flatMap, but performed on the UI thread

    If the future is already completed and the current thread is the UI thread, the UI action will be applied in-place, rather than asynchronously.

  6. def foreachUi[U](f: Function[T, Ui[U]]): Unit

    Permalink

    Same as foreach, but performed on the UI thread

    Same as foreach, but performed on the UI thread

    If the future is already completed and the current thread is the UI thread, the UI action will be applied in-place, rather than asynchronously.

  7. val future: Future[T]

    Permalink
  8. def getClass(): Class[_ <: AnyVal]

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

    Permalink
    Definition Classes
    Any
  10. def mapUi[S](f: Function[T, Ui[S]]): Future[S]

    Permalink

    Same as map, but performed on the UI thread.

    Same as map, but performed on the UI thread.

    If the future is already completed and the current thread is the UI thread, the UI action will be applied in-place, rather than asynchronously.

  11. def onCompleteUi[U](pf: PartialFunction[Try[T], Ui[U]]): Unit

    Permalink

    Same as onComplete, but performed on the UI thread

  12. def onFailureUi[U](pf: PartialFunction[Throwable, Ui[U]]): Unit

    Permalink

    Same as onFailure, but performed on the UI thread

  13. def onSuccessUi[U >: T](pf: PartialFunction[T, Ui[U]]): Unit

    Permalink

    Same as onSuccess, but performed on the UI thread

  14. def recoverUi[U >: T](pf: PartialFunction[Throwable, Ui[U]]): Future[U]

    Permalink

    Same as recover, but performed on the UI thread

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyVal

Inherited from Any

Ungrouped