Constructor
new PartialResult(initialVal)
Parameters:
Name | Type | Description |
---|---|---|
initialVal |
object | 23 * @param {boolean} isFinal |
- Source:
Methods
getFinalValue() → {object}
Blocking method to wait for and return the final value.
- Source:
Returns:
- Type
- object
initialValue() → {object}
- Source:
Returns:
- Type
- object
isInitialValueFinal() → {boolean}
- Source:
Returns:
- Type
- boolean
map(f) → {module:eclairjs/partial.PartialResult}
Transform this PartialResult into a PartialResult of type T.
Parameters:
Name | Type | Description |
---|---|---|
f |
func |
Returns:
onComplete(handler) → {module:eclairjs/partial.PartialResult}
Set a handler to be called when this PartialResult completes. Only one completion handler
is supported per PartialResult.
Parameters:
Name | Type | Description |
---|---|---|
handler |
func |
- Source:
Returns:
onFail(handler)
Set a handler to be called if this PartialResult's job fails. Only one failure handler
is supported per PartialResult.
Parameters:
Name | Type | Description |
---|---|---|
handler |
func |
- Source:
toString() → {string}
Returns:
- Type
- string