MemoryObjectStream print message after receive another message #865
andrea-mucci
started this conversation in
General
Replies: 1 comment
-
Can you create a complete runable example, and show the actual output and your expected output? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I will intent to explain what happen, i'm quite sure that this behaviour depend mostly of my ignorance with anyio, anyway I will appreciate some help
I have a service class, a broker class and a consumer class:
the Service class call the Broker class and pass the send_event_stream
the Broker class, receive the send_event and pass to the consumer class
finally the Consumer class
this class open a connection with a broker and start a while loop waiting some message
what happen:
i start the service with run(), i send from the broker a message and i get "message received" but no the message sent by the MemoryObjectStream, i send another message from the broker and i get the print of the previous message
seems that the MessageStream flush the content a step forward or maybe i do something wrong
could someone help me to understand what happen?
cheers
Beta Was this translation helpful? Give feedback.
All reactions