pub fn write_cli_batched_output<W>(
writer: &mut W,
chunks: &[&str],
max_batch_bytes: usize,
) -> TerminalWriteResultwhere
W: Write,Expand description
Coalesces CLI output chunks into bounded batches up to max_batch_bytes with explicit backpressure handling and non-Hz telemetry.
§Arguments
&mut W- Destination CLI writer (stdout, pipe, or deterministic buffer).&[&str]- Ordered UTF-8 output chunks to batch.usize- Maximum byte size per flushed batch (>= 1).
§Returns
TerminalWriteResult- Write status and explicit non-GPU, non-Hz telemetry (flush_latency_ms,bytes_written,backpressure_events,batched_flush_count).