MCPcopy Create free account
hub / github.com/apache/cloudstack / reject

Function reject

tools/ngui/static/js/lib/angular.js:6926–6936  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

6924 * @returns {Promise} Returns a promise that was already resolved as rejected with the `reason`.
6925 */
6926 var reject = function(reason) {
6927 return {
6928 then: function(callback, errback) {
6929 var result = defer();
6930 nextTick(function() {
6931 result.resolve((errback || defaultErrback)(reason));
6932 });
6933 return result.promise;
6934 }
6935 };
6936 };
6937
6938
6939 /**

Callers 12

deferFunction · 0.85
wrappedCallbackFunction · 0.85
wrappedErrbackFunction · 0.85
defaultErrbackFunction · 0.85
promisifyFunction · 0.85
isValidIPv4CidrFunction · 0.85
LoginFunction · 0.85
OauthLoginFunction · 0.85
GetInfoFunction · 0.85
ProjectViewFunction · 0.85
RefreshFeaturesFunction · 0.85
UpdateConfigurationFunction · 0.85

Calls 1

deferFunction · 0.85

Tested by

no test coverage detected