Do Go channels have any order guarantees?
For example: you have two goroutines A and B that use the channel. A clicks data on the channel, and B reads it. Are you sure B will read the data. In the same order that A placed it in the channel?
I understand that if there are several producers or consumers, the order can be non-deterministic, but I specifically ask about the presence of only one manufacturer and 1 consumer.
EDIT: I ask about buffered channels
thanks
source share