-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Which Watcher do I get? #361
Labels
Comments
The idea isn't bad, we'll need to add an enum for each type that is part of the trait, you can do a PR if you want. |
I may have an implementation that sidesteps adding the params for PollWatcher to the trait. |
Merged
0xpr03
added a commit
that referenced
this issue
Sep 29, 2021
Note that non-boxing would require an enum that matches the CFG chaos of RecommendedWatcher, adding an enum for every possible configurable watcher combination. And otherwise we'll have to add the specific config calls to the trait. Closes #361
0xpr03
added a commit
that referenced
this issue
Sep 29, 2021
Note that non-boxing would require an enum that matches the CFG chaos of RecommendedWatcher, adding an enum for every possible configurable watcher combination. And otherwise we'll have to add the specific config calls to the trait. Closes #361
0xpr03
added a commit
that referenced
this issue
Sep 30, 2021
Note that non-boxing would require an enum that matches the CFG chaos of RecommendedWatcher, adding an enum for every possible configurable watcher combination. And otherwise we'll have to add the specific config calls to the trait. Closes #361
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like to know which Watcher
RecommendedWatcher::new()
returns.For example if
let mut watcher = RecommendedWatcher::new(tx)?;
returns aPollWatcher
I would like to set the delay manually (the default is 30 seconds and cannot be adjusted later).Maybe something like,
Option<Duration>
parameter toWatcher::new()
which will be relevant only iftype RecommendedWatcher = PollWatcher;
Then I could calllet mut watcher = RecommendedWatcher::new(tx, Some(Duration::from_secs(1)))?;
whoami()
method to the Watcher trait and implement setting the delay withconfigure()
. Then I could call, e.g.The text was updated successfully, but these errors were encountered: