goog.labs.result.Result
Interfacegoog.labs.result.Result()
A Result object represents a value returned by an asynchronous operation at some point in the future (e.g. a network fetch). This is akin to a 'Promise' or a 'Future' in other languages and frameworks. @interface
unhandled information:
type
'interface'
goog.labs.result.Result.CancelError
ClassThe value to be passed to the error handlers invoked upon cancellation. … more
goog.labs.result.Result.State
EnumThe States this object can be in. … more
.cancel()
Cancels the current Result, invoking the canceler function, if set.
boolean
}
.getError()
.getState()
goog.labs.result.Result.State
}
.getValue()
.isCanceled()
boolean
}
.wait(handler)
Attaches handlers to be called when the value of this Result is available.
handler
{!function
(!goog.labs.result.Result
)}