(state: ControlState)
| 435 | } |
| 436 | |
| 437 | async function waitForReady(state: ControlState): Promise<void> { |
| 438 | const deadline = Date.now() + READY_TIMEOUT_MS; |
| 439 | while (!state.ready.value) { |
| 440 | if (Date.now() > deadline) |
| 441 | throw new Error("Timed out waiting for PTY scenario target readiness"); |
| 442 | await delay(10); |
| 443 | } |
| 444 | } |
| 445 | |
| 446 | async function waitForInitialRender(state: ControlState): Promise<void> { |
| 447 | const deadline = Date.now() + INITIAL_RENDER_TIMEOUT_MS; |
no test coverage detected