-
Hi, I don't understand why when moving the receiver to another thread one of the receivers doesn't receive the message sent at the same time as the others, but instead receives it when the next message is sent. The receiver that does not receive it changes in each iteration. This case is reproduced below:
On the other hand, if the messages are sent from the main thread, they are received without problem by all the receivers. As the following example shows:
|
Beta Was this translation helpful? Give feedback.
Answered by
Darksonn
Aug 15, 2022
Replies: 1 comment
-
All async code that uses |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JuliaAlos
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All async code that uses
std::thread::sleep
is wrong. Read this for more.