You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with asyncio and asyncua libraries in python 3.8.7 and I want to use asyncio.Queue to pass the data from the async function into the main thread.
However, the issue I encountered is that my queue does not get any messages after the first await.
If I use some other async lib (aiohttp in the example) then everything works as expected:
wrapper
main
in_async
in_async_2
after await
I have validated that minimal asyncua server at opc.tcp://localhost:4840/freeopcua/server/ works - I can get the data using the code in this sample or the default one, but queues do not seem to work. Is there something I'm missing?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm working with asyncio and asyncua libraries in python 3.8.7 and I want to use asyncio.Queue to pass the data from the async function into the main thread.
However, the issue I encountered is that my queue does not get any messages after the first
await
.Here's my example:
I get:
If I use some other async lib (aiohttp in the example) then everything works as expected:
I have validated that minimal asyncua server at
opc.tcp://localhost:4840/freeopcua/server/
works - I can get the data using the code in this sample or the default one, but queues do not seem to work. Is there something I'm missing?Beta Was this translation helpful? Give feedback.
All reactions