pub fn wait_prog_state(dur: Duration) -> ProgState