hannobraun / inotify-rs

Idiomatic inotify wrapper for the Rust programming language
ISC License
261 stars 65 forks source link

Replace event_stream() with into_event_stream() #199

Closed talklittle closed 2 years ago

talklittle commented 2 years ago

Also adds EventStream.into_inotify() to convert back to an Inotify.

event_stream() was problematic because it could allow a caller to inadvertently create multiple streams reading and contending over the same source, resulting in unpredictable event emission.

Fixes #176