Skip to main content

check_update

Function check_update 

Source
pub async fn check_update(
    options: &CheckUpdateOptions,
    mode: CheckMode,
) -> Result<UpdateStatus, UpdateKitError>
Expand description

Orchestrate an update check using the configured sources and cache.

  • Blocking: Iterates sources, fetches from the first successful one, writes the result to cache, and returns the status.
  • Non-blocking: Reads cache. If fresh, returns cached status. If stale, spawns a background check and returns the stale cached data. If missing, spawns background and returns Unknown.