* @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]
()
| 14465 | * @returns {Promise} The newly created promise. |
| 14466 | */ |
| 14467 | function $QProvider() { |
| 14468 | |
| 14469 | this.$get = ['$rootScope', '$exceptionHandler', function($rootScope, $exceptionHandler) { |
| 14470 | return qFactory(function(callback) { |
| 14471 | $rootScope.$evalAsync(callback); |
| 14472 | }, $exceptionHandler); |
| 14473 | }]; |
| 14474 | } |
| 14475 | |
| 14476 | function $$QProvider() { |
| 14477 | this.$get = ['$browser', '$exceptionHandler', function($browser, $exceptionHandler) { |
nothing calls this directly
no test coverage detected