Skip to content

Commit

Permalink
append a simple pull for notification group
Browse files Browse the repository at this point in the history
  • Loading branch information
XdoctorwhoZ committed Nov 30, 2024
1 parent 5120f95 commit 0ecac87
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/notification/group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ impl NotificationGroup {
self.elements.push(n);
}

///
///
///
pub fn pull(&mut self) -> Vec<Notification> {
self.pulled_elements = self.elements.clone();
self.elements.clear();
self.pulled_elements.clone()
}

///
///
///
Expand Down

0 comments on commit 0ecac87

Please sign in to comment.