MCPcopy Create free account
hub / github.com/PeachScript/vue-infinite-loading / continuesCall

Function continuesCall

test/unit/utils.js:16–25  ·  view source on GitHub ↗
(fn, times, cb)

Source from the content-addressed store, hash-verified

14 * @param {Function} cb [description]
15 */
16export function continuesCall(fn, times, cb) {
17 if (times) {
18 fn();
19 setTimeout(() => {
20 continuesCall(fn, times - 1, cb);
21 }, 1);
22 } else {
23 cb();
24 }
25}
26
27let fakeCache;
28/**

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…