goog.labs.result.SimpleResult
Classgoog.labs.result.SimpleResult()
A SimpleResult object is a basic implementation of the goog.labs.result.Result interface. This could be subclassed(e.g. XHRResult) or instantiated and returned by another class as a form of result. The caller receiving the result could then attach handlers to be called when the result is resolved(success or error).
goog.labs.result.SimpleResult.StateError
ClassError thrown if there is an attempt to set the value or error for this result more than once. … more
.cancel()
Cancels the Result.
boolean
}
.getError()
.getState()
.getValue()
.isCanceled()
.setError(opt_error)
Sets the Result to be an error Result.
opt_error
{*=}
.setValue(value)
Sets the value of this Result, changing the state.
value
{*}
.wait(handler)
Attaches handlers to be called when the value of this Result is available.
handler
{!function
(!goog.labs.result.SimpleResult
)}