Skip to main content

maybe_spawn_auto_update_check

Function maybe_spawn_auto_update_check 

Source
pub fn maybe_spawn_auto_update_check(
    cli_source: Option<&Utf8Path>,
) -> Option<AutoUpdateHandle>
Expand description

Spawn a background check on std::thread::spawn if the user hasn’t opted out and the cache is older than the configured interval. The returned handle is consumed by finalize_auto_update_check at shutdown.

Source-repo discovery is best-effort: we read [ui] config to see whether the banner is disabled, but if the repo can’t be located we just skip the banner rather than fail loudly. The banner is convenience; nothing else hangs off of it.