thenable.js
No description.

File Location

/goog/promise/thenable.js

Classes

goog.Thenable
Provides a more strict interface for Thenables in terms of http://promisesaplus.com for interop with .

Public Protected Private

Global Functions

goog.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 interface for interop with other Promise implementations.
Arguments:
ctor : function(new:goog.Thenable,...[?])
The class constructor. The corresponding class must have already implemented the interface.
code »
goog.Thenable.isImplementedBy(object) boolean
No description.
Arguments:
object : *
No description.
Returns: boolean  Whether a given instance implements goog.Thenable. The class/superclass of the instance must call addImplementation.
code »

Directory promise

File Reference