1 2 3 4 5 6 7 8
use once_cell::sync::OnceCell; use tokio::sync::mpsc; pub static RELOAD: OnceCell<mpsc::UnboundedSender<()>> = OnceCell::new(); pub fn reload() { RELOAD.get().unwrap().send(()).unwrap(); }