Class/Object

net.liftweb.actor

LAFuture

Related Docs: object LAFuture | package actor

Permalink

class LAFuture[T] extends AnyRef

A container that contains a calculated value or may contain one in the future

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

Instance Constructors

  1. new LAFuture(scheduler: LAScheduler = LAScheduler, context: Box[Context] = Empty)

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def abort(): Unit

    Permalink

    Abort the future.

    Abort the future. It can never be satified

  5. def aborted_?: Boolean

    Permalink

    Has the future been aborted

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def complete(value: Box[T]): Unit

    Permalink

    Complete the Future...

    Complete the Future... with a Box... useful from Helpers.tryo

  9. def completed_?: Boolean

    Permalink

    Has the future completed?

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def fail(e: Box[Nothing]): Unit

    Permalink

    If the execution fails as a Box[Nothing], do this

  13. def fail(e: Exception): Unit

    Permalink

    If the execution fails, do this

  14. def filter(f: (T) ⇒ Boolean): LAFuture[T]

    Permalink
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def flatMap[A](f: (T) ⇒ LAFuture[A]): LAFuture[A]

    Permalink
  17. def foreach(f: (T) ⇒ Unit): Unit

    Permalink

    Execute the function with the value.

    Execute the function with the value. If the value has not been satisfied, execute the function when the value is satified

  18. def get(timeout: Long): Box[T]

    Permalink

    Get the future value or if the value is not satisfied after the timeout period, return an Empty

  19. final def get: T

    Permalink

    Get the future value

    Get the future value

    Annotations
    @tailrec()
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. def isAborted: Boolean

    Permalink

    Java-friendly alias for aborted_?.

  23. def isCompleted: Boolean

    Permalink

    Java-friendly alias for completed_?.

  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def isSatisfied: Boolean

    Permalink

    Java-friendly alias for satisfied_?.

  26. def map[A](f: (T) ⇒ A): LAFuture[A]

    Permalink

    Map the future over a function

    Map the future over a function

    A

    the type that the function returns

    f

    the function to apply to the future

    returns

    a Future that represents the function applied to the value of the future

  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. def onComplete(f: (Box[T]) ⇒ Unit): Unit

    Permalink

    A function to execute on completion of the Future, success or failure

    A function to execute on completion of the Future, success or failure

    f

    the function to execute on completion of the Future

  31. def onFail(f: (Box[Nothing]) ⇒ Unit): Unit

    Permalink

    Execute a function on failure

    Execute a function on failure

    f

    the function to execute. Will receive a Box[Nothing] which may be a Failure if there's exception data

  32. def onSuccess(f: (T) ⇒ Unit): Unit

    Permalink

    Execute the function on success of the future

    Execute the function on success of the future

    f

    the function to execute on success.

  33. def satisfied_?: Boolean

    Permalink

    Has the future been satisfied

  34. def satisfy(value: T): Unit

    Permalink

    Satify the future...

    Satify the future... perform the calculation the results in setting a value for the future

  35. val scheduler: LAScheduler

    Permalink
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def withFilter(f: (T) ⇒ Boolean): LAFuture[T]

    Permalink

Deprecated Value Members

  1. def complete_?: Boolean

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) Please use completed_? instead.

Inherited from AnyRef

Inherited from Any

Ungrouped