* @ngdoc service * @name $q * @requires $rootScope * @this * * @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 K
()
| 16597 | * @returns {Promise} The newly created promise. |
| 16598 | */ |
| 16599 | function $QProvider() { |
| 16600 | |
| 16601 | this.$get = ['$rootScope', '$exceptionHandler', function($rootScope, $exceptionHandler) { |
| 16602 | return qFactory(function(callback) { |
| 16603 | $rootScope.$evalAsync(callback); |
| 16604 | }, $exceptionHandler); |
| 16605 | }]; |
| 16606 | } |
| 16607 | |
| 16608 | /** @this */ |
| 16609 | function $$QProvider() { |
nothing calls this directly
no test coverage detected