debounce_unit method

no_thread
pantonshire 3 years ago
parent 721520dae4
commit 20d954c10b

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

Loading…
Cancel
Save