|All Extended Interfaces|
|All Known Subinterfaces|
|All Known Implementations|
Provides a more strict interface for Thenables in terms of http://promisesaplus.com for interop with goog.Promise.
this.then<VALUE, THIS>( opt_onFulfilled, opt_onRejected, opt_context ) →
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
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.
Thenable.addImplementation( ctor ) →
Marks a given class (constructor) as an implementation of Thenable, so that we can query that fact at runtime. The class must have already implemented the interface. Exports a 'then' method on the constructor prototype, so that the objects also implement the extern goog.Thenable interface for interop with other Promise implementations.
Thenable.isImplementedBy( object ) →
An expando property to indicate that an object implements