(ms: number)
| 27 | const SLEEP_SYNC_WAIT_TARGET = new Int32Array(new SharedArrayBuffer(4)); |
| 28 | |
| 29 | function sleepSync(ms: number): void { |
| 30 | Atomics.wait(SLEEP_SYNC_WAIT_TARGET, 0, 0, ms); |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * Synchronous lock acquisition with bounded busy-wait. Blocks the event loop for up to |
no outgoing calls
no test coverage detected