Skip to main content

try_lock_install

Function try_lock_install 

Source
pub fn try_lock_install(
    paths: &DataPaths,
    provider_id: &str,
    pinned_version: &str,
) -> Result<Option<InstallGuard>>
Expand description

Non-blocking lock_install: Ok(None) while another instance holds the lock. For waiters that must stay cancellable (install.start polls this and races install.cancel, Codex P2 on #3927).