MCPcopy Index your code
hub / github.com/angular-ui/ui-router / $QProvider

Function $QProvider

test/angular/1.4/angular.js:15019–15026  ·  view source on GitHub ↗

* @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]

()

Source from the content-addressed store, hash-verified

15017 * @returns {Promise} The newly created promise.
15018 */
15019function $QProvider() {
15020
15021 this.$get = ['$rootScope', '$exceptionHandler', function($rootScope, $exceptionHandler) {
15022 return qFactory(function(callback) {
15023 $rootScope.$evalAsync(callback);
15024 }, $exceptionHandler);
15025 }];
15026}
15027
15028function $$QProvider() {
15029 this.$get = ['$browser', '$exceptionHandler', function($browser, $exceptionHandler) {

Callers

nothing calls this directly

Calls 1

qFactoryFunction · 0.70

Tested by

no test coverage detected