* @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
()
| 15908 | * @returns {Promise} The newly created promise. |
| 15909 | */ |
| 15910 | function $QProvider() { |
| 15911 | this.$get = [ |
| 15912 | '$rootScope', '$exceptionHandler', function ($rootScope, $exceptionHandler) { |
| 15913 | return qFactory(function (callback) { |
| 15914 | $rootScope.$evalAsync(callback); |
| 15915 | }, |
| 15916 | $exceptionHandler); |
| 15917 | } |
| 15918 | ]; |
| 15919 | } |
| 15920 | |
| 15921 | function $$QProvider() { |
| 15922 | this.$get = [ |
nothing calls this directly
no test coverage detected