MCPcopy
hub / github.com/cujojs/when / rejectChain

Function rejectChain

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

Source from the content-addressed store, hash-verified

131 }
132
133 function rejectChain(n) {
134 return function(deferred) {
135 var p = Promise.reject({}), i = 0;
136 for(;i < n; i++) {
137 p = p.then(null, rethrow);
138 }
139
140 p.then(null, function() {
141 deferred.resolve();
142 });
143 };
144 }
145
146 function rejectChainSparse(n) {
147 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…