Skip to main content

install_managed_cli

Function install_managed_cli 

Source
pub async fn install_managed_cli(
    paths: &DataPaths,
    provider_id: &str,
    on_line: &(dyn Fn(&'static str, &str) + Sync),
    cancel: &AtomicBool,
) -> Result<InstallOutcome, DownloadError>
Expand description

Install provider_id’s pinned copy, async: take the cross-instance lock (blocking, off the runtime), reuse a finished install another instance made while this one waited, otherwise clear leftovers and install. resolvecli’s path; install.start polls the lock itself (it must stay cancellable) and calls install_managed_into once it holds it.