Expand description
Progress reporting seam.
OCP: the pipeline emits events through this module and never
knows about terminals, rates, or formatting; consumers install
any ProgressSink without the writer changing. MECE: progress
lives here and nowhere else. The registry is process-wide
(matching the writer’s existing thread-local cache precedent)
and optional — absent a sink, emit_file is a single relaxed
load on the fast path.
Traits§
- Progress
Sink - Receives progress events from the write pipeline.
Functions§
- clear_
sink - Remove the process-wide sink.
- emit_
file - Emit a file event; a no-op when no sink is installed.
- set_
sink - Install the process-wide sink (replaces any previous one).