Initial commit
This commit is contained in:
commit
f67dcd8f2a
31 changed files with 3297 additions and 0 deletions
16
src/notifies.rs
Normal file
16
src/notifies.rs
Normal 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(),
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue