Skip to main content

with_lock

Function with_lock 

Source
pub fn with_lock<T>(host: &str, f: impl FnOnce() -> T) -> Result<T>
Expand description

Run f while holding the fair lock for host.