class LAFuture[T] extends AnyRef
A container that contains a calculated value or may contain one in the future
- Alphabetic
- By Inheritance
- LAFuture
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new LAFuture(scheduler: LAScheduler = LAScheduler, context: Box[Context] = Empty)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def abort(): Unit
Abort the future.
Abort the future. It can never be satified
- def aborted_?: Boolean
Has the future been aborted
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def complete(value: Box[T]): Unit
Complete the Future...
Complete the Future... with a Box... useful from Helpers.tryo
- def completed_?: Boolean
Has the future completed?
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fail(e: Box[Nothing]): Unit
If the execution fails as a Box[Nothing], do this
- def fail(e: Exception): Unit
If the execution fails, do this
- def filter(f: (T) => Boolean): LAFuture[T]
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flatMap[A](f: (T) => LAFuture[A]): LAFuture[A]
- def foreach(f: (T) => Unit): Unit
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
- def get(timeout: Long): Box[T]
Get the future value or if the value is not satisfied after the timeout period, return an Empty
- final def get: T
Get the future value
Get the future value
- Annotations
- @tailrec()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isAborted: Boolean
Java-friendly alias for aborted_?.
- def isCompleted: Boolean
Java-friendly alias for completed_?.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isSatisfied: Boolean
Java-friendly alias for satisfied_?.
- def map[A](f: (T) => A): LAFuture[A]
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
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def onComplete(f: (Box[T]) => Unit): Unit
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
- def onFail(f: (Box[Nothing]) => Unit): Unit
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
- def onSuccess(f: (T) => Unit): Unit
Execute the function on success of the future
Execute the function on success of the future
- f
the function to execute on success.
- def satisfied_?: Boolean
Has the future been satisfied
- def satisfy(value: T): Unit
Satify the future...
Satify the future... perform the calculation the results in setting a value for the future
- val scheduler: LAScheduler
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withFilter(f: (T) => Boolean): LAFuture[T]