-
Notifications
You must be signed in to change notification settings - Fork 4
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
Async version with Tokio/smol #1
Comments
Hey! We'll need a cross-platform asynchronous interface to serial ports. I vaguely remember that there were some issues with asynchronous serial ports that prevented me from attempting it. However, I would be glad to see information or PRs to show that it is feasible :) As a workaround, I'm running a separate thread (could use |
Thanks for the fast response! I may try to craft a PR, my guess is that the main changes are going to be in bus.rs and in almost every file in instructions folder, is this a correct assumption? |
As it stands, yeah. It's a bit of a shame to duplicate all of the instructions for sync/async, but they do have to read the response message(s), so I don't see how we could avoid the duplication easily. Note that mio-serial and tokio-serial do suffer from the same strange API choices that eventually led me to write |
Hi, you can find a PR here: #2 please feel free to comment and give feedbacks |
Hi,
First of all, thank you for this very useful crate, I was wondering if there is any plan to have asynchronous features for it.
If not do you have any suggestions on how that can be contributed?
The text was updated successfully, but these errors were encountered: