Skip to main content

FLUSH_BYTES

Constant FLUSH_BYTES 

Source
const FLUSH_BYTES: usize = 4096;
Expand description

Flush pending bytes to the publisher when buffered without a newline AND the buffer reaches this size — so long lines and newline-free output (minified JSON, CR-only progress bars) still stream live instead of accumulating in memory unbounded.