Comments (2)
Looks like a duplicate of #482. You have to keep the watcher around. Dropping it like here stops the event loop. See also variable scopes for why your watcher is gone at the end of that scope/function.
from notify.
Ah, that makes sense... I discovered the same thing about the channels, but didn't occur to me the watcher is the same. 🤦 Thank you
from notify.
Related Issues (20)
- Feature request: unwatch subpaths
- Receiving `Modify(Metadata(Any))` only if file contents becomes empty from non-empty HOT 2
- Full CPU core usage with the Inotify backend HOT 1
- Not adequate README/links to documentation on crates.io for file-id
- inotify: files pointed at by multiples symlinks generate events only for one path HOT 1
- Relax windows-rs version requirement HOT 2
- Simple example from documentation doesn't work
- On FreeBSD notifications are only delivered using `RecursiveMode::Recursive`
- TOCTOU bug when adding a watcher HOT 1
- Watch on non-existing file HOT 3
- PollWatcher: Ignore IO "file not found" exceptions when accessing entry metadata?🥺 HOT 4
- .
- How to stop a debouncer watcher if it's mut reference?
- Compilation error in v4 HOT 4
- FS operations performed by blender yield confusing order of events from the debouncer HOT 5
- I have to specify all possible event kinds in match statement, instead of using any. HOT 2
- Using kqueue on mac can result in "Too many open files (os error 24)"
- Q. How to ignore tracking some folders/files inside tracked folder?
- EXC_BAD_ACCESS the first time after running a freshly compiled binary
- v4 of Notify lacks `std` and `winerror` features of `winapi`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notify.