MCPcopy Index your code
hub / github.com/angular-ui/ui-router / when

Function when

test/angular/1.6/angular.js:17532–17536  ·  view source on GitHub ↗

* @ngdoc method * @name $q#when * @kind function * * @description * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise. * This is useful when you are dealing with an object that might or might not be a promise, or if * the promise comes fr

(value, callback, errback, progressBack)

Source from the content-addressed store, hash-verified

17530
17531
17532 function when(value, callback, errback, progressBack) {
17533 var result = new Promise();
17534 resolvePromise(result, value);
17535 return result.then(callback, errback, progressBack);
17536 }
17537
17538 /**
17539 * @ngdoc method

Callers 2

allFunction · 0.70
raceFunction · 0.70

Calls 1

resolvePromiseFunction · 0.70

Tested by

no test coverage detected