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
The Go language specification is silent about what happens if there are
multiple senders and/or receivers on a channel. Suppose there are two
receivers blocked, waiting to receive from a channel. When a sender sends a
value on the channel, who gets it?
If I had a say in the matter I would go for the natural and intuitive FIFO
semantics where the receiver which was first to block is the one to receive
a message when it becomes available. Same thing for blocking senders.