pub fn new_debouncer_opt<F: DebounceEventHandler, T: Watcher, C: FileIdCache + Send + 'static>(
timeout: Duration,
tick_rate: Option<Duration>,
event_handler: F,
file_id_cache: C,
config: Config,
) -> Result<Debouncer<T, C>, Error>
Expand description
Creates a new debounced watcher with custom configuration.
Timeout is the amount of time after which a debounced event is emitted.
If tick_rate
is None
, notify will select a tick rate that is 1/4 of the provided timeout.