Class Index | File Index

Classes


Class orion.Promise

Interface representing an eventual value.
Defined in: </shared/eclipse/e4/orion/I201302221257/plugins/org.eclipse.orion.client.core/web/orion/Deferred.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
Promise is an interface that represents an eventual value returned from the single completion of an operation.
Method Summary
Method Attributes Method Name and Description
 
then(onResolve, onReject, onProgress)
Adds handlers to be called on fulfillment or progress of this promise.
Class Detail
orion.Promise()
Promise is an interface that represents an eventual value returned from the single completion of an operation.

For a concrete class that provides Promise-based APIs, see orion.Deferred.

See:
orion.Deferred#promise
orion.Deferred
Method Detail
{orion.Promise} then(onResolve, onReject, onProgress)
Adds handlers to be called on fulfillment or progress of this promise.
Parameters:
{Function} onResolve Optional
Called when this promise is resolved.
{Function} onReject Optional
Called when this promise is rejected.
{Function} onProgress Optional
May be called to report progress events on this promise.
Returns:
{orion.Promise} A new promise that is fulfilled when the given onResolve or onReject callback is finished. The callback's return value gives the fulfillment value of the returned promise.

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Feb 22 2013 13:00:53 GMT-0500 (EST)