1 2 3 4 5 6 7 8 9 10
use std::sync::LazyLock as Lazy; pub static RUNTIME: Lazy<tokio::runtime::Runtime> = Lazy::new(|| { tokio::runtime::Builder::new_multi_thread() .worker_threads(4) .enable_io() .enable_time() .build() .unwrap() });