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

Function $QProvider

test/angular/1.3/angular.js:13218–13225  ·  view source on GitHub ↗

* @ngdoc service * @name $q * @requires $rootScope * * @description * A service that helps you run functions asynchronously, and use their return values (or exceptions) * when they are done processing. * * This is an implementation of promises/deferred objects inspired by * [Kris Kowal's Q]

()

Source from the content-addressed store, hash-verified

13216 * @returns {Promise} The newly created promise.
13217 */
13218function $QProvider() {
13219
13220 this.$get = ['$rootScope', '$exceptionHandler', function($rootScope, $exceptionHandler) {
13221 return qFactory(function(callback) {
13222 $rootScope.$evalAsync(callback);
13223 }, $exceptionHandler);
13224 }];
13225}
13226
13227function $$QProvider() {
13228 this.$get = ['$browser', '$exceptionHandler', function($browser, $exceptionHandler) {

Callers

nothing calls this directly

Calls 1

qFactoryFunction · 0.70

Tested by

no test coverage detected