1
0
Fork 0
forked from wry/wry

fifo: clear 40hz latch listener at shutdown

This commit is contained in:
Julian Orth 2025-07-18 23:49:26 +02:00
parent e28b1b5646
commit b3b48608d1
2 changed files with 5 additions and 0 deletions

View file

@ -1068,6 +1068,7 @@ impl State {
self.position_hint_requests.clear();
self.head_managers.clear();
self.head_managers_async.clear();
self.const_40hz_latch.clear();
}
pub fn remove_toplevel_id(&self, id: ToplevelIdentifier) {

View file

@ -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(),