Skip to main content

run

Function run 

Source
pub async fn run(
    cache: Arc<GitCache>,
    index: Arc<CacheIndex>,
    shutdown: Receiver<bool>,
)
Expand description

Background maintenance task. Measures changed mirrors and evicts the LRU tail whenever the index signals work, and exits cleanly when shutdown fires (or its sender drops).