-
Notifications
You must be signed in to change notification settings - Fork 36
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
Non-blocking polling of events #44
Comments
hmm is this for async or sync use? in the async case would in the blocking case this seems like it could be useful, perhaps a |
Hi,
|
Hello,
Thank you for providing us with this wonderful library!
A missing feature of this library to me is the ability to do a non-blocking poll on the LineEventHandle struct.
Currently every method (
.get_event()
,.next()
and.read_event()
) is blocking.Ideally we would have a sort of
.has_event() -> bool
function available to check whether there is an event available to process. This way we would take maximum advantage of the queue-like architecture of the new GPIO character device ABI.Please let me know what you think of this suggestion.
Cheers,
Sven.
The text was updated successfully, but these errors were encountered: