MCPcopy Index your code
hub / github.com/cujojs/when / resolveChain

Function resolveChain

benchmark/promise.js:107–118  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

105 }
106
107 function resolveChain(n) {
108 return function(deferred) {
109 var p = Promise.resolve({}), i = 0;
110 for(;i < n; i++) {
111 p = p.then(identity);
112 }
113
114 p.then(function() {
115 deferred.resolve();
116 });
117 };
118 }
119
120 function resolveChainSparse(n) {
121 return function(deferred) {

Callers 1

promise.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…