Skip to main content

ShardedMutex

Type Alias ShardedMutex 

Source
pub type ShardedMutex<K> = Sharded<K, Mutex<()>>;
Expand description

Sharded over parking_lot::Mutex used purely as a lock (it guards (), carrying no value): lock blocks the calling thread, so never hold its guard across an .await.

Aliased Typeยง

pub struct ShardedMutex<K> { /* private fields */ }