(timeout)
| 38 | new WebAssembly.Memory({ shared: true, initial: 1, maximum: 1 }).buffer, |
| 39 | ); |
| 40 | function syncSleep(timeout) { |
| 41 | try { |
| 42 | Atomics.wait(waitBuffer, 0, 0, timeout); |
| 43 | return true; |
| 44 | } catch (_) { |
| 45 | return false; |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Calls the callback and handle node EAGAIN errors. |
no test coverage detected
searching dependent graphs…