select statement seems to favor one case randomly
I have a select with two ready cases: one reading from a channel and one from a timer. I expected some kind of priority but the behavior looks random, and actually I read that select picks pseudo-randomly among ready cases. Is that guaranteed? I need the channel case to win whenever both are ready. I will keep digging in the meantime.
4 replies