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

Function defer

test/angular/1.7/angular.js:17891–17893  ·  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

17889 * @returns {Deferred} Returns a new instance of deferred.
17890 */
17891 function defer() {
17892 return new Deferred();
17893 }
17894
17895 function Deferred() {
17896 var promise = this.promise = new Promise();

Callers 1

raceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected