Skip to main content

cas_lib/http/types/
runtime.rs

1#[cfg(not(target_arch = "wasm32"))]
2use once_cell::sync::Lazy;
3#[cfg(not(target_arch = "wasm32"))]
4use tokio::runtime::Runtime;
5
6#[cfg(not(target_arch = "wasm32"))]
7pub static RUNTIME: Lazy<Runtime> = Lazy::new(|| {
8    tokio::runtime::Builder::new_multi_thread()
9        .enable_all()
10        .worker_threads(4)
11        .build()
12        .unwrap()
13});