Skip to main content

with_protect_scope

Function with_protect_scope 

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

Execute a closure with a protect scope that is accessible via TLS.

ยงSafety

Must be called from the R main thread.