Skip to content
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

Add a forever blocking variant of Connection#process() #490

Open
dancerj opened this issue Jan 24, 2025 · 1 comment
Open

Add a forever blocking variant of Connection#process() #490

dancerj opened this issue Jan 24, 2025 · 1 comment

Comments

@dancerj
Copy link
Contributor

dancerj commented Jan 24, 2025

connection.process always takes a timeout value, and I need to give it a timeout. I wish the API took a "None" and passed it down to read_write().
Would it be a good idea to add an API variant that allows an Optional ?

https://docs.rs/dbus/0.9.7/dbus/blocking/struct.Connection.html#method.process
https://docs.rs/dbus/0.9.7/dbus/channel/struct.Channel.html#method.blocking_pop_message

@diwic
Copy link
Owner

diwic commented Jan 28, 2025

I guess, since read_write takes a Option<Duration>. Feel free to submit a PR as long as it is backwards compatible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants