MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / $QProvider

Function $QProvider

web/static/bower_components/angular/angular.js:14642–14649  ·  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

14640 * @returns {Promise} The newly created promise.
14641 */
14642function $QProvider() {
14643
14644 this.$get = ['$rootScope', '$exceptionHandler', function($rootScope, $exceptionHandler) {
14645 return qFactory(function(callback) {
14646 $rootScope.$evalAsync(callback);
14647 }, $exceptionHandler);
14648 }];
14649}
14650
14651function $$QProvider() {
14652 this.$get = ['$browser', '$exceptionHandler', function($browser, $exceptionHandler) {

Callers

nothing calls this directly

Calls 1

qFactoryFunction · 0.85

Tested by

no test coverage detected