Class Index | File Index

Classes


Class orion.Promise

Interface representing an eventual value.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/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
 
cancel(reason, strict)
Cancels this promise.
 
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 implements Promise and provides additional API, see orion.Deferred.

See:
orion.Deferred
orion.Deferred#promise
Method Detail
cancel(reason, strict)
Cancels this promise.
Parameters:
{Object} reason
The reason for canceling this promise.
{Boolean} strict Optional

{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 Thu Jun 29 2017 14:37:22 GMT-0400 (EDT)