fifo: clear 40hz latch listener at shutdown
This commit is contained in:
parent
e28b1b5646
commit
b3b48608d1
2 changed files with 5 additions and 0 deletions
|
|
@ -25,6 +25,10 @@ impl<T: ?Sized> Default for EventSource<T> {
|
|||
}
|
||||
|
||||
impl<T: ?Sized> EventSource<T> {
|
||||
pub fn clear(&self) {
|
||||
self.on_attach.take();
|
||||
}
|
||||
|
||||
pub fn iter(&self) -> EventSourceIter<T> {
|
||||
EventSourceIter {
|
||||
iter: self.listeners.iter(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue