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
Uh oh!
There was an error while loading. Please reload this page.
-
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+removepairs that occur between anextcall, but that's entirely optional - just blindly buffering everything is fine for me.Beta Was this translation helpful? Give feedback.
All reactions