You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To add on to this, is it possible for the examples folder to have a good working example for Tokio?
Currently there is the futures async example implementation, but for some of us who are rather weaker with async await, I have no idea on how to implement the equivalent to my Tokio project
I've tried this notify's debounce mini and full version and they behaved in ways that I did not expect, my understanding of debounce is that it fires an event after x seconds of not interacting with it, but using it, it looks like it just delays the sending of the event by x seconds and does not actually debounce.
Edit-edit-edit:
Just realised that by doing this method, it is only good if you just want to debounce ONE event, if you are watching multiple files, either, create 1 watcher to watch 1 file each or find some other method 🤷
System details
macos with intel chip
rustc --version
:rustc 1.65.0 (897e37553 2022-11-02)
notify = { version = "6.0.0", default-features = false, features = ["macos_kqueue"] }
What you did (as detailed as you can)
I try to use notify with tokio in my project and the reload logic is mostly based on the async monitor logic. the code is as follow:
the issue is when watch function is enabled, the cpu consumption will be 100% percent, and tokio select will be triggred infinitely.
What you expected
This is when watch function is disabled:
And this is when watch function is enabled:
What happened
The text was updated successfully, but these errors were encountered: