bundles/org.eclipse.orion.client.core/web/orion/operation.js
function handle(operationLocation, onSuccess, onError) {
		var def = new Deferred();
		_trackCancel(operationLocation, def);
		_getOperation({location: operationLocation, timeout: 100}, def, onSuccess, onError);
		return def;
	}
function handle(operationLocation, onSuccess, onError) {
		var def = new Deferred();
		_trackCancel(operationLocation, def);
		_getOperation({location: operationLocation, timeout: 100}, def, onSuccess, onError);
		return def;
	}
function handle ( operationLocation , onSuccess , onError ) { var def = new Deferred ( ) ; _trackCancel ( operationLocation , def ) ; _getOperation ( { location : operationLocation , timeout : 100 } , def , onSuccess , onError ) ; return def ; }
Handles a long-running operation as a promise.
@name orion.operation.handle
@function
@param {String} operationLocation
@param {Function} [onSuccess] If provided, will be called to transform a successful operation into the resolve value of the
returned promise.
@param {Function} [onError] If provided, will be called to trasnform a failed operation into the reject value of the
returned promise.
@returns {orion.Promise}
Handles a long - running operation as a promise .