async fn countdown( state: &AppState, notice: Notice, alive: impl Fn() -> bool, window: Duration, ) -> Outcome