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

asyncio SharedPV doesn't accept a loop as an argument as the docs claim #163

Open
evalott100 opened this issue Jan 21, 2025 · 3 comments
Open

Comments

@evalott100
Copy link

The docs for SharedPV claim that the event loop can be passed with loop=, however in the source code, asyncio.get_running_loop is always called, meaning an asyncio.new_event_loop can never be passed in.

@mdavidsaver
Copy link
Member

The documentation is out of date since #80 and #82, which removed loop= following removal from asyncio with py 3.10. Probably because it is out-of-line in documentation/server.rst.

Same arguments as :py:class:`thread.SharedPV` except that queue= is replaced with loop= .

@mdavidsaver
Copy link
Member

Corrected with 9040d4b

@evalott100
Copy link
Author

@mdavidsaver

I'm trying to follow a similar structure to asynciotest.py, but am having problems getting async put/rpc on the SharedPV handlers to run at all. This is with a Server.forever and I suspect there's blocking going on.

Are there any projects using an asyncio p4p server you could point me towards?

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