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>.
				
			
| Constructor Attributes | Constructor Name and Description | 
|---|---|
| Method Attributes | Method Name and Description | 
|---|---|
| <static> | orion.operation.handle(operationLocation, onSuccess, onError)
								 Handles a long-running operation as a promise. | 
					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}