Class Index | File Index

Classes


Namespace orion.operation

Provides an API for handling long running operations as promises.
Defined in: </shared/eclipse/e4/orion/I201404012230/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 Tue Apr 01 2014 22:58:24 GMT-0400 (EDT)