Hi,
I am attempting to use this library according to the pattern provided in the very helpful sender.py
and receiver.py
examples, but am running into an issue.
My application is async and so I want to use the async semantics provided by the library. That said, while I am reasonably experienced with Python, this is my first foray into async
, so it's possible that my problem below results from something I am doing wrong.
The issue is that when I try to run my code according to the example in receiver.py
, as follows:
async with ashared_memory_context_manager.if_has_messages() as shared_memory:
I receive an error indicating:
AttributeError: 'ASharedMemoryManager' object has no attribute 'if_has_messages'. Did you mean: 'has_messages'?
If I try using the has_messages
method, like this:
async with self._ashared_memory_manager.has_messages() as shared_memory:
I get this error:
TypeError: 'coroutine' object does not support the asynchronous context manager protocol
I am grateful for any help you can provide.
Many thanks -- I appreciate your work on this project!
--Phil