Skip to content

TYPING_STALL_MS

const TYPING_STALL_MS: number = COPY_HOLD_MAX_MS

Defined in: state.ts:81

How long a field the stream is writing may go without new text before it counts as failed. The clock restarts on the field’s *-start and on each of its chunks, and is read from the injected clock, so a timer that runs late still sees the real gap. Only visible time counts: while the page is hidden or frozen nothing stalls, and when it is visible again each field being written gets a fresh TYPING_STALL_MS (setPageVisible). When it runs out, the field is decided as if the stream had ended there (UnfinishedCopyPolicy; by default its fallback replaces the half line, final). A field that has not started, or that finished, is not timed. Equal to the longest hold.