MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / defer

Function defer

lib/test/angular/1.7.0/angular.js:17317–17319  ·  view source on GitHub ↗

* @ngdoc method * @name ng.$q#defer * @kind function * * @description * Creates a `Deferred` object which represents a task which will finish in the future. * * @returns {Deferred} Returns a new instance of deferred.

()

Source from the content-addressed store, hash-verified

17315 * @returns {Deferred} Returns a new instance of deferred.
17316 */
17317 function defer() {
17318 return new Deferred();
17319 }
17320
17321 function Deferred() {
17322 var promise = this.promise = new Promise();

Callers 1

raceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected