Skip to main content

index_budgeted_cancellable

Function index_budgeted_cancellable 

Source
pub fn index_budgeted_cancellable(
    store: &mut Store,
    root: &Path,
    active: &[String],
    budget: Duration,
    query: Option<&str>,
    cancel: &AtomicBool,
) -> Result<Stats, Box<dyn Error>>
Expand description

Like index_budgeted, but the pass stops promptly when cancel is set — the interactive cold-start escalation (see the CLI’s search path) runs a long, generous-budget warm and lets the user abort it with Ctrl-C without losing the batches already committed.