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

Function defer

test/angular/1.6/angular.js:17273–17275  ·  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

17271 * @returns {Deferred} Returns a new instance of deferred.
17272 */
17273 function defer() {
17274 return new Deferred();
17275 }
17276
17277 function Deferred() {
17278 var promise = this.promise = new Promise();

Callers 1

raceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected