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

Function delayReject

test/race-test.js:11–18  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

9var never = CorePromise.never();
10
11function delayReject(ms) {
12 /*global setTimeout*/
13 return new CorePromise(function(resolve, reject) {
14 setTimeout(function() {
15 reject(sentinel);
16 }, ms);
17 });
18}
19
20buster.testCase('CorePromise.race', {
21 'should return empty race for length 0': function() {

Callers 1

race-test.jsFile · 0.85

Calls 2

setTimeoutFunction · 0.85
rejectFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…