uselazy_static::lazy_static;usestd::future::Future;usestd::sync::Mutex;usetokio::runtime::{Builder, Runtime};lazy_static!{staticrefRUNTIME:Mutex<Runtime>=Mutex::new(Builder::new().basic_scheduler()// Do not make a new thread since this runtime is only used for network requests
.enable_all().build().unwrap());}pubfnblocking<F: Future>(future: F)->F::Output{RUNTIME.lock().unwrap().block_on(future)}