Combines multiple promises into a single promise that is resolved when all of the input promises are resolved.
Combines multiple promises into a single promise that is resolved when all of the input promises are resolved.
An array or hash of promises.
Returns a single promise that will be resolved with an array/hash of values, each value corresponding to the promise at the same index/key in the promises array/hash. If any of the promises is resolved with a rejection, this resulting promise will be rejected with the same rejection value.
Creates a Deferred object which represents a task which will finish in the future.
Creates a Deferred object which represents a task which will finish in the future.
a new instance of deferred.
Creates a promise that is resolved as rejected with the specified reason.
Creates a promise that is resolved as rejected with the specified reason. This api should be used to forward rejection in a chain of promises. If you are dealing with the last promise in a promise chain, you don't need to worry about it. When comparing deferreds/promises to the familiar behavior of try/catch/throw, think of reject as the throw keyword in JavaScript. This also means that if you "catch" an error via a promise error callback and you want to forward the error to the promise derived from the current promise, you have to "rethrow" the error by returning a rejection constructed via reject.
Constant, message, exception or an object representing the rejection reason.
a promise that was already resolved as rejected with the reason.
Alias of when to maintain naming consistency with ES6.
Alias of when to maintain naming consistency with ES6.
Value or a promise
Returns a promise of the passed value or promise
Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise.
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 from a source that can't be trusted.
Value or a promise
Returns a promise of the passed value or promise
Q Service - A service that helps you run functions asynchronously, and use their return values (or exceptions) when they are done processing.
https://docs.angularjs.org/api/ng/service/$q