class PartialResult[R] extends AnyRef
- Source
- PartialResult.scala
- Alphabetic
- By Inheritance
- PartialResult
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new PartialResult(initialVal: R, isFinal: Boolean)
Value Members
-
def
getFinalValue(): R
Blocking method to wait for and return the final value.
- def initialValue: R
- def isInitialValueFinal: Boolean
-
def
map[T](f: (R) ⇒ T): PartialResult[T]
Transform this PartialResult into a PartialResult of type T.
-
def
onComplete(handler: (R) ⇒ Unit): PartialResult[R]
Set a handler to be called when this PartialResult completes.
Set a handler to be called when this PartialResult completes. Only one completion handler is supported per PartialResult.
-
def
onFail(handler: (Exception) ⇒ Unit): Unit
Set a handler to be called if this PartialResult's job fails.
Set a handler to be called if this PartialResult's job fails. Only one failure handler is supported per PartialResult.
-
def
toString(): String
- Definition Classes
- PartialResult → AnyRef → Any