chunk-flush 0.1.0

Flush-on-newline buffer for streaming LLM output. Holds bytes until a newline or N millis pass, then yields a complete chunk. Zero deps.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# chunk-flush

[![crates.io](https://img.shields.io/crates/v/chunk-flush.svg)](https://crates.io/crates/chunk-flush)

Flush-on-newline buffer for streaming LLM output. Holds chars until a
newline or the size cap, then emits a chunk.

```rust
use chunk_flush::Flusher;
let mut f = Flusher::new(500);
let out = f.push("hello world\n");
```

Zero deps. MIT or Apache-2.0.