✨ debounce_unit method
This commit is contained in:
1 parent
721520dae4
commit
20d954c10b
1 file changed
+6
@@ -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> {
|
||||
fn drop(&mut self) {
|
||||
self.controller.notify_shutdown();
|
||||
|
||||
Reference in new issue
Block a user