pub fn check_for_update() -> Box<dyn FnOnce() -> Option<String>>Expand description
Spawns a background thread to check GitHub for a newer CLI version. Returns a lazy handle — calling the handle blocks until the result is ready. The check is skipped entirely if one ran within the last 24 hours. Network failures are silently swallowed so they never interrupt normal usage.