MCPcopy Create free account
hub / github.com/apache/struts-examples / $QProvider

Function $QProvider

rest-angular/src/main/webapp/js/lib/angular/angular.js:15456–15463  ·  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

15454 * @returns {Promise} The newly created promise.
15455 */
15456function $QProvider() {
15457
15458 this.$get = ['$rootScope', '$exceptionHandler', function($rootScope, $exceptionHandler) {
15459 return qFactory(function(callback) {
15460 $rootScope.$evalAsync(callback);
15461 }, $exceptionHandler);
15462 }];
15463}
15464
15465function $$QProvider() {
15466 this.$get = ['$browser', '$exceptionHandler', function($browser, $exceptionHandler) {

Callers

nothing calls this directly

Calls 1

qFactoryFunction · 0.70

Tested by

no test coverage detected