Skip to main content

refresh

Function refresh 

Source
pub async fn refresh(state: &Path, cfg: &UpdateConfig) -> Outcome
Expand description

Ask the repository, if the cache says it is time, and leave the answer where every reader looks. This is what a long-lived process runs on its schedule: the CLI’s per-run check and the gateway’s tick write the same update.json, so one of them answering spares the other the request.

Nothing here installs anything: a version change is a decision, and a background timer is not the place to make it.