Skip to main content

acquire_lock

Function acquire_lock 

Source
pub async fn acquire_lock(
    ct: &CancellationToken,
    storage: &Arc<dyn Storage>,
    key: &str,
) -> Result<LockGuard>
Expand description

Acquire a distributed lock and register it as owned by this process .