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

Function $QProvider

test/angular/1.5/angular.js:16599–16606  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

16597 * @returns {Promise} The newly created promise.
16598 */
16599function $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 */
16609function $$QProvider() {

Callers

nothing calls this directly

Calls 1

qFactoryFunction · 0.70

Tested by

no test coverage detected