MCPcopy
hub / github.com/stemdeckapp/stemdeck / minDelay

Function minDelay

desktop/ui/setup.js:52–57  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

50}
51
52function minDelay(ms) {
53 return Promise.all([
54 new Promise((r) => setTimeout(r, ms)),
55 new Promise((r) => requestAnimationFrame(r)),
56 ]);
57}
58
59function formatElapsed(startedAt) {
60 const seconds = Math.floor((Date.now() - startedAt) / 1000);

Callers 1

runSetupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected