-
Notifications
You must be signed in to change notification settings - Fork 17
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 async
support
#156
Comments
I think the simplest approach here would be to simply pull the I think this would essentially result in us moving some of the However, I think it may make sense to update Edit: I think the fix here is to have the |
Might be wise to analyze how |
From what I've seen, all of the crates either provide an async or a sync interface, but not both. |
Wrong button |
But |
One option may be to go with async only - blocking is very plarform specific, while asynchronism is a language level concept, independent of os etc. If user would want a sync version, it is only a matter of semaphore to block on future. There is std crate pollster that uses a condvar, but it is trivial to make something like that for custom embedded use case and without any heap allocations. |
It would be really nice to be able to use
minimq
as an async MQTT client as well. We should investigate what it would take. Ideally, we would be able to reuse most of the logic and parsing here with minimal code duplication to be able to have bothasync
and synchronous versions of the client.The text was updated successfully, but these errors were encountered: