vnj/src/notifies.rs
2024-11-17 18:43:15 +03:00

16 lines
281 B
Rust

use std::sync::Arc;
use tokio::sync::Notify;
#[derive(Debug)]
pub struct Notifies {
pub update: Notify,
pub new_subscriber: Notify,
}
pub fn make() -> Arc<Notifies> {
Arc::new(Notifies {
update: Notify::new(),
new_subscriber: Notify::new(),
})
}