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

Wishlist: non-callback interface #12

telent opened this Issue May 20, 2011 · 0 comments


None yet
2 participants
Copy link

telent commented May 20, 2011

I'd like to incorporate inotifiers into an application that has its own event loop based on The #to_io method is great as far as it goes in that I can tell when new inotify events have been sent by the system, but to retrieve and parse them involves a dance with callbacks: I'd have to write a callback which saves them somewhere, call #process to call it, and then inspect the saved events when control returns from #process to my own code again.

It would be much cleaner if I could just call #get_events directly, but at present that seems to be an internal-use-only method. Would you consider making it or something very like it part of the official interface?

@nex3 nex3 closed this in f25e18e Jan 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment