Broadcast receive block misses messages in a loop

by Eugen Gez

Version 1 (January 12, 2020)

Download (15 downloads)

Bug report/behaviour demonstration.

If You don't know what it's good for, let it be...

Broadcast receive block in a loop misses messages, when they arrive while the flow has left this block and is still processing the previous message in the loop logic.

This flow sends 10 broadcast messages between two fibers and logs sent and received values.

Starting this example You will see 10 "Sent: x" messages and most probably only one "Got: x" message in the log.