* @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]
()
| 15017 | * @returns {Promise} The newly created promise. |
| 15018 | */ |
| 15019 | function $QProvider() { |
| 15020 | |
| 15021 | this.$get = ['$rootScope', '$exceptionHandler', function($rootScope, $exceptionHandler) { |
| 15022 | return qFactory(function(callback) { |
| 15023 | $rootScope.$evalAsync(callback); |
| 15024 | }, $exceptionHandler); |
| 15025 | }]; |
| 15026 | } |
| 15027 | |
| 15028 | function $$QProvider() { |
| 15029 | this.$get = ['$browser', '$exceptionHandler', function($browser, $exceptionHandler) { |
nothing calls this directly
no test coverage detected