Class orion.Promise
				
				
			
				Interface representing an eventual value.
				
				
					
Defined in:  </shared/eclipse/e4/orion/I201404012230/bundles/org.eclipse.orion.client.core/web/orion/Deferred.js>.
				
			
| Constructor Attributes | Constructor Name and Description | 
|---|---|
| Promise is an interface that represents an eventual value returned from the single completion of an operation. | 
| 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.
					Method Detail
				
				
					 
					
					
					
					cancel(reason, strict)
					
					
					
						Cancels this promise.
						
						
					
					
					
					
						
							
						
						
						
						
						
						
						
					
					
					{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 onResolveoronRejectcallback is finished. The callback's return value gives the fulfillment value of the returned promise.