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

Function sleepMs

scripts/watch.js:174–176  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

172// -- Cross-process locking ----------------------------------------------------
173
174function sleepMs(ms) {
175 Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms);
176}
177
178/**
179 * Acquire the state lock via atomic mkdir of a lock directory. Retries up to

Callers 1

acquireLockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected