Suggestion: add support for an async iterator of file change events #1364
dead-claudia
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
A simple wrapper that yields those shouldnt be too hard. Tge question is: why would it be useful? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The idea is pretty simple: make all file watchers async iterators yielding
{event, path, stats}
objects.You could do more with this as well, like allowing automatic coalescing of events like dropping
add
+remove
pairs that occur between anext
call, but that's entirely optional - just blindly buffering everything is fine for me.Beta Was this translation helpful? Give feedback.
All reactions