Expand description
Async line writer using a Tokio-based actor pattern.
The actor owns a background task that performs file I/O via spawn_blocking.
The handle (AsyncLineWriter) sends messages through a bounded mpsc channel,
so the caller never blocks on I/O. When the handle is dropped, the channel closes
and the background task finishes its current write before exiting.
This follows the “Actors with Tokio” pattern:
- Handle (
AsyncLineWriter) is separate from the actor task. - Handle is
Clone(viampsc::Sender). - Graceful shutdown when all senders are dropped.
- Bounded channel for backpressure.
Structs§
- Async
Line Writer - Asynchronous line writer that buffers writes on a background Tokio task.
- Async
Line Writer Diagnostics - Snapshot of best-effort exporter writer health.