MCPcopy Create free account
hub / github.com/EvoMap/evolver / sleepMs

Function sleepMs

src/ops/lifecycle.js:30–35  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

28// --- Portable helpers ---
29
30function sleepMs(ms) {
31 var delay = Math.max(0, Math.floor(Number(ms) || 0));
32 if (delay <= 0) return;
33 // Atomics.wait blocks without spawning a subprocess; works on all platforms.
34 Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, delay);
35}
36
37function execText(command) {
38 return execSync(command, { encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'], maxBuffer: MAX_EXEC_BUFFER });

Callers 2

stopPidsFunction · 0.70
startFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected