Skip to main content

claim_guard

Function claim_guard 

Source
pub(super) fn claim_guard(
    key: &str,
    scope: &ConnectionScope,
    provider: SocialProvider,
    session: &str,
) -> Result<MutexGuard<'static, BTreeMap<String, Pending>>, SocialError>
Expand description

Serializes local promotion with cancellation after network I/O, without holding a lock during HTTP.