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

Function defer

test/angular/1.5/angular.js:16638–16645  ·  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

16636 * @returns {Deferred} Returns a new instance of deferred.
16637 */
16638 function defer() {
16639 var d = new Deferred();
16640 //Necessary to support unbound execution :/
16641 d.resolve = simpleBind(d, d.resolve);
16642 d.reject = simpleBind(d, d.reject);
16643 d.notify = simpleBind(d, d.notify);
16644 return d;
16645 }
16646
16647 function Promise() {
16648 this.$$state = { status: 0 };

Callers 1

raceFunction · 0.70

Calls 1

simpleBindFunction · 0.70

Tested by

no test coverage detected