Skip to main content

Module progress

Module progress 

Source
Expand description

Progress of long runs (a sorter over a recording, a pyramid build, …). Libraries only report (ProgressSink); entry points draw it (a Python bar, a terminal bar) and estimate the time left from the rate.

Structs§

NoProgress
Ignores progress.
ProgressEvent
Where a run is: stage step of steps (1-based), named stage, with done of total units of its work finished (total 0: unknown).
Stages
The stages of one run, numbered in order: reports through sink as stages.report(index, done, total).

Traits§

ProgressSink
Receives the progress of a run. Called from the run’s thread; keep it short.