Class Index | File Index

Classes


Namespace orion.operation

Provides an API for handling long running operations as promises.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/operation.js>.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
orion.operation.handle(operationLocation, onSuccess, onError)
Handles a long-running operation as a promise.
Namespace Detail
orion.operation
Method Detail
<static> {orion.Promise} orion.operation.handle(operationLocation, onSuccess, onError)
Handles a long-running operation as a promise.
Parameters:
{String} operationLocation
{Function} onSuccess Optional
If provided, will be called to transform a successful operation into the resolve value of the returned promise.
{Function} onError Optional
If provided, will be called to trasnform a failed operation into the reject value of the returned promise.
Returns:
{orion.Promise}

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 18 2017 12:15:12 GMT-0500 (EST)