This question already has an answer here:
I want to use a global channel to send and receive between two goroutines. What is wrong in this program
https://play.golang.org/p/Y_9-rw0JoV
The global chan medium
is not receiving the data in ProgB
.
Infact in ProgA
program stucks at medium <- a
.
</div>