with_global_lock

Function with_global_lock 

Source
pub fn with_global_lock<F, R>(f: F) -> R
where F: FnOnce() -> R,
Expand description

Ensure only one test that modifies global state runs at a time