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

Function fakeResolved

test/defer-test.js:11–17  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

9var other = {};
10
11function fakeResolved(val) {
12 return {
13 then: function(callback) {
14 return fakeResolved(callback ? callback(val) : val);
15 }
16 };
17}
18
19function fakeRejected(reason) {
20 return {

Callers 2

fakeRejectedFunction · 0.85
defer-test.jsFile · 0.85

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…