I wanna create a async HashMap singleton, So any where can use it in my project.
The pseudo code:
static_or_lazy MY_SINGLETON Arc_or_noArc<tokio::sync::RwLock<HashMap<String, String>>> = ?
#tokio_main
fn main() {
tokio::spawn(async move {
how_to_get_MY_SINGLETON_item.await; //?
});
tokio::spawn(async move {
how_to_store_MY_SINGLETON_item.await; //?
});
}