✨ debounce_unit method

This commit is contained in:
pantonshire committed 2023-04-30 16:38:12 +01:00
1 parent 721520dae4
commit 20d954c10b
1 file changed
+6
+6
View File
@@ -83,6 +83,12 @@ impl<T> Debouncer<Vec<T>> {
} }
} }
impl Debouncer<()> {
pub fn debounce_unit(&self) {
self.debounce((), |_acc, _event_data| ());
}
}
impl<T> Drop for Debouncer<T> { impl<T> Drop for Debouncer<T> {
fn drop(&mut self) { fn drop(&mut self) {
self.controller.notify_shutdown(); self.controller.notify_shutdown();