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

No timeout in the RTU client async implementation #183

Closed
gustavowd opened this issue Apr 6, 2023 · 2 comments
Closed

No timeout in the RTU client async implementation #183

gustavowd opened this issue Apr 6, 2023 · 2 comments

Comments

@gustavowd
Copy link
Contributor

Hi, is there any way to enable timeout in the rtu async client in the tokio-modbus?
In the sync RTU client it is possible by using "sync::rtu::connect_slave_with_timeout", but i can't find any way to do that in the async mode. Any thougths about it?

@uklotzde
Copy link
Member

uklotzde commented Apr 6, 2023

https://docs.rs/futures/latest/futures/future/fn.select.html

@uklotzde uklotzde closed this as completed Apr 6, 2023
@uklotzde
Copy link
Member

uklotzde commented Apr 6, 2023

Ready to use: https://docs.rs/futures-time/latest/futures_time/

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