Skip to main content

with_runtime

Function with_runtime 

Source
pub fn with_runtime<R>(
    f: impl FnOnce(&mut Runtime) -> R,
) -> Result<R, RuntimeError>
Expand description

Access the global runtime under the process mutex.