with_critical_section

Function with_critical_section 

Source
pub fn with_critical_section<F, R>(object: &Bound<'_, PyAny>, f: F) -> R
where F: FnOnce() -> R,
👎Deprecated since 0.28.0: use pyo3::sync::critical_section::with_critical_section instead
Expand description