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

Function vote

poll.js:84–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82 }
83
84 function vote() {
85 if (canceled) { return; }
86 when(task(),
87 function (result) {
88 when(verifier(result),
89 function (verification) {
90 return verification ? certify(result) : schedule(result);
91 },
92 function () { schedule(result); }
93 );
94 },
95 reject
96 );
97 }
98
99 if (delayInitialTask) {
100 schedule();

Callers 1

poll.jsFile · 0.85

Calls 3

whenFunction · 0.85
certifyFunction · 0.85
scheduleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…