MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / tick

Function tick

content/utils.js:387–397  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

385 const start = Date.now();
386
387 function tick() {
388 if (flowStopped) {
389 reject(new Error(STOP_ERROR_MESSAGE));
390 return;
391 }
392 if (Date.now() - start >= ms) {
393 resolve();
394 return;
395 }
396 setTimeout(tick, Math.min(100, Math.max(25, ms - (Date.now() - start))));
397 }
398
399 tick();
400 });

Callers 1

sleepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected