Skip to main content

DEFAULT_PASTE_IDLE_TIMEOUT

Constant DEFAULT_PASTE_IDLE_TIMEOUT 

Source
pub const DEFAULT_PASTE_IDLE_TIMEOUT: Duration;
Expand description

Default bracketed-paste idle timeout.

When a paste has been opened (a PasteStart was emitted) and no further input arrives within this window, the source flushes retained bytes as a final PasteChunk, then emits PasteEnd { complete: false } and clears the decoder’s paste state. Guards against terminators that never arrive (truncated stream, malformed input).