p4p
p4p copied to clipboard
added an asyncio server example
I can't get the async server to work. I think adding an example while troubleshooting this would be good.
Both READ_PV and WRITE_PV can be successfully set up and pvget'd, however I can't get the async handler to function. The pvput times out, and after exiting the server we get the error:
task: <Task pending name='Task-4' coro=<AttrWHandler.put() running at /.../p4p/example/asyncio_server.py:31> ... RuntimeWarning: coroutine 'AttrWHandler.put' was never awaited
I was judging this was the recommended way to set up a server from asynciotest.py?