simpleresult.js
No description.

File Location

/goog/result/simpleresult.js

Classes

goog.result.SimpleResult
A SimpleResult object is a basic implementation of the goog.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.result.SimpleResult.StateError
Error thrown if there is an attempt to set the value or error for this result more than once.

Public Protected Private

Global Functions

goog.result.SimpleResult.fromPromise(promise) !goog.result.Result
Creates a SimpleResult that fires when the given promise resolves. Use only during migration to Promises.
Arguments:
promise : !goog.Promise.<?>
No description.
Returns: !goog.result.Result  No description.
code »

Directory result

File Reference