()
| 17 | static RUNTIME: OnceLock<Runtime> = OnceLock::new(); |
| 18 | |
| 19 | fn runtime() -> &'static Runtime { |
| 20 | RUNTIME.get_or_init(|| { |
| 21 | Builder::new_multi_thread() |
| 22 | .enable_all() |
| 23 | .build() |
| 24 | .expect("build tokio runtime") |
| 25 | }) |
| 26 | } |
| 27 | |
| 28 | /// Synchronously run an async future from a non-async function. |
| 29 | /// |
no test coverage detected
searching dependent graphs…