-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New API #4
Comments
The problem is this requires polling in the client application. STM based queues would give you the best of both worlds (although adds more dependencies). |
The application can solve it in whatever way it wishes if we provide the building blocks. |
One other building block I would add is (Actually, if we want to go for minimalism, all you need is A lot of different concurrency mechanisms (Async, STM, etc...) would benefit from this addition. |
It wouldn't be efficient to only read a single event. For performance reasons they should be read in batch. It's also essential to wait until there is enough events to read. More details here; http://www.serpentine.com/blog/2008/01/04/why-you-should-not-use-pyinotify/ |
Well, some sort of blocking call would be useful. Maybe |
Looks like you're describing |
Does |
At least on Linux it'd block until something is available, and then return that. |
Ah, okay. (Then I would recommend making a nonblocking version of |
Thinking of a new API for version 0.4.
The current callback based API has several weaknesses, including silently dropping exceptions from the user's callback code which several users has noticed.
A new API could look something like this:
It'd be without background threads, without channels, thus much simpler.
Event overflow would be left to the linux kernel.
The text was updated successfully, but these errors were encountered: