async fn acquire_install_lock(
run: &InstallRun,
pin: &str,
cancel_rx: &mut Receiver<()>,
) -> Result<InstallGuard, String>Expand description
The shared dir is written by every AgentMux instance on this
machine: serialize on its install lock. Waiting for another instance’s
install must stay cancellable, so poll the lock and race install.cancel
instead of blocking in it: a blocking wait would ignore cancel, keep the
provider claimed, and could later report success for a cancelled session
(#3927). The error is the message of the done event.