Skip to content

Commit

Permalink
Remove with_delay method instead of deprecate it
Browse files Browse the repository at this point in the history
  • Loading branch information
jasta authored and 0xpr03 committed Apr 28, 2022
1 parent 392354c commit f3c38f1
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,18 +139,6 @@ impl PathData {
}

impl PollWatcher {
/// Create a new [PollWatcher] and set the poll frequency to `delay`.
#[deprecated(note = "Prefer with_config instead")]
pub fn with_delay<F: EventHandler>(event_handler: F, delay: Duration) -> Result<PollWatcher> {
Self::with_config(
event_handler,
PollWatcherConfig {
poll_interval: delay,
compare_contents: false,
},
)
}

/// Create a new [PollWatcher], configured as needed.
pub fn with_config<F: EventHandler>(
event_handler: F,
Expand Down

0 comments on commit f3c38f1

Please sign in to comment.