MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / sleepSync

Function sleepSync

scripts/integration/js-api.mjs:680–683  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

678}
679
680function sleepSync(ms) {
681 if (activeTiming) activeTiming.sleepMs += ms;
682 Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms);
683}
684
685function printTimingSummary() {
686 if (stepTimings.length === 0) return;

Callers 1

retrySyncFunction · 0.85

Calls 1

waitMethod · 0.80

Tested by

no test coverage detected