MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / waitForReady

Function waitForReady

packages/node/src/testing/ptyScenario.ts:437–444  ·  view source on GitHub ↗
(state: ControlState)

Source from the content-addressed store, hash-verified

435}
436
437async 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
446async function waitForInitialRender(state: ControlState): Promise<void> {
447 const deadline = Date.now() + INITIAL_RENDER_TIMEOUT_MS;

Callers 1

runPtyScenarioFunction · 0.85

Calls 1

delayFunction · 0.50

Tested by

no test coverage detected