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

Function waitForInitialRender

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

Source from the content-addressed store, hash-verified

444}
445
446async function waitForInitialRender(state: ControlState): Promise<void> {
447 const deadline = Date.now() + INITIAL_RENDER_TIMEOUT_MS;
448 while (state.renderSeq.value === 0 && Date.now() <= deadline) {
449 await delay(10);
450 }
451}
452
453function colorModeMeets(
454 actual: TerminalCaps["colorMode"],

Callers 1

runPtyScenarioFunction · 0.85

Calls 1

delayFunction · 0.50

Tested by

no test coverage detected