-
Notifications
You must be signed in to change notification settings - Fork 39
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
Asyncio support #95
Comments
appears to have happened in this commit: last versions can be found here: |
oddly, the base rust library is wholly async, but the python bindings are sync. we appear to have had async some time in the past, where that text is leftover from. however, I can't find any of the async calls from those old examples grepping the code, so it seems likely those APIs are gone. kind of a mood killer. |
Hi, Since the major API reworks of Zenoh 0.6, we had decided to drop support for the async API in Python. There are a few reasons for this, which kind of amplify each other:
If you're working with |
As a side note, I'm retagging this issue:
|
Regarding the dangers of a Python script failing to cleanup a Zenoh subscriber... I sometimes write code so bad that it cannot be exited normally, and the process must be killed. What should I do to clean up after such an event? |
This would be better suited for issue #62, but I'll reply in context: should your process exit abnormally, the link(s) to neighbour(s) will eventually time out (10s by default), at which point all declarations made by the dead session will be undeclared. Note that this will only happen once the session has become unable to contact its neighbours. If you may declarations in a process that does keep its session alive and well, the infrastructure will assume the session still needs all of the declarations that haven't been undeclared. |
Bringing some relevant discussion points from #187 that @Mallets and I had. I pointed out that this issue was previously tagged as wontfix, which it seems was a mistake. @Mallets also mentioned: "async is still in the project radar for being reintroduced but it needs to be reintroduced properly. One doesn't simply reintroduce async (or walk into Mordor)... Some preparatory work needs to happen before reintroducing it. As said before, having an async keyword in the API doesn't necessarily means the API is async. But we will get there... :)" |
Describe the bug
Hi.
I was trying to figure out how to use Zenoh with asyncio, and the only mention I could find was at the bottom of this page: https://github.com/eclipse-zenoh/zenoh-python/tree/master/examples
To reproduce
n/a
System info
n/a
The text was updated successfully, but these errors were encountered: