* @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]
()
| 13216 | * @returns {Promise} The newly created promise. |
| 13217 | */ |
| 13218 | function $QProvider() { |
| 13219 | |
| 13220 | this.$get = ['$rootScope', '$exceptionHandler', function($rootScope, $exceptionHandler) { |
| 13221 | return qFactory(function(callback) { |
| 13222 | $rootScope.$evalAsync(callback); |
| 13223 | }, $exceptionHandler); |
| 13224 | }]; |
| 13225 | } |
| 13226 | |
| 13227 | function $$QProvider() { |
| 13228 | this.$get = ['$browser', '$exceptionHandler', function($browser, $exceptionHandler) { |
nothing calls this directly
no test coverage detected