Initial commit

This commit is contained in:
Aleksandr 2024-11-17 14:58:34 +03:00
commit f67dcd8f2a
31 changed files with 3297 additions and 0 deletions

16
src/notifies.rs Normal file
View file

@ -0,0 +1,16 @@
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(),
})
}