Skip to main content

wait_until_free

Function wait_until_free 

Source
pub async fn wait_until_free(
    store: Option<Arc<LeaseStore>>,
    uid: &str,
    own_boot_id: &str,
    timeout: Duration,
) -> Result<(), String>
Expand description

Wait until no other instance holds uid (lease and compat probe both clear), polling. Err after timeout.