soph_runtime/support/
mod.rs

1use crate::Runtime;
2use std::sync::OnceLock;
3
4mod runtime;
5
6static RUNTIME: OnceLock<Runtime> = OnceLock::new();
7
8pub fn runtime() -> &'static Runtime {
9    RUNTIME.get_or_init(|| Runtime::new().unwrap_or_else(|err| panic!("{err}")))
10}