goog.Thenable | |
goog.result.Result | goog.Thenable |
goog.result.DependentResult | goog.result.Result |
No description.
Returns: !Array.<!goog.result.Result>
A list of Results which will affect
the eventual value of this Result. The returned Results may themselves
have parent results, which would be grandparents of this Result;
grandparents (and any other ancestors) are not included in this list.
|
code » |
Cancels the current Result, invoking the canceler function, if set.
Returns: boolean
Whether the Result was canceled.
|
code » | |||
![]()
No description.
Returns: *
The error slug for this Result. Will return undefined if the
Result was a success, the error slug was not set, or if the Result is
pending.
|
code » | |||
![]()
No description.
Returns: !goog.result.Result.State
The state of this Result.
|
code » | |||
![]()
No description.
Returns: *
The value of this Result. Will return undefined if the Result is
pending or was an error.
|
code » | |||
No description.
Returns: boolean
Whether this Result was canceled.
|
code » | |||
![]()
Attaches handlers to be called when the value of this Result is available.
Handlers are called in the order they were added by wait.
Arguments:
|
code » |
Adds callbacks that will operate on the result of the Thenable, returning a
new child Promise.
If the Thenable is fulfilled, the
onFulfilled callback will be
invoked with the fulfillment value as argument, and the child Promise will
be fulfilled with the return value of the callback. If the callback throws
an exception, the child Promise will be rejected with the thrown value
instead.
If the Thenable is rejected, the onRejected callback will be invoked
with the rejection reason as argument, and the child Promise will be rejected
with the return value of the callback or thrown value.
Arguments:
Returns: !goog.Promise.<RESULT>
A new Promise that will receive the result
of the fulfillment or rejection callback.
|
code » |