MCPcopy Create free account
hub / github.com/SethGammon/Citadel / startPolling

Function startPolling

scripts/local-watch.js:106–112  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

104}
105
106function startPolling(ms) {
107 setInterval(async () => {
108 if (scanning) return;
109 scanning = true;
110 try { await runScan(); } finally { scanning = false; }
111 }, ms);
112}
113
114// Run an initial scan so the user sees immediate output
115schedule();

Callers 1

local-watch.jsFile · 0.85

Calls 1

runScanFunction · 0.70

Tested by

no test coverage detected