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

Function resolveChainSparse

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

Source from the content-addressed store, hash-verified

118 }
119
120 function resolveChainSparse(n) {
121 return function(deferred) {
122 var p = Promise.resolve({}), i = 1;
123 for(;i < n; i++) {
124 p = p.then(null);
125 }
126
127 p.then(identity).then(function() {
128 deferred.resolve();
129 });
130 };
131 }
132
133 function rejectChain(n) {
134 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…