Hello All I have a question about the use of race condition detector. (compiling with -race options, to be precise).
I have a program which has a channel (size 1024): one goroutine is reading and one is writing. When I compile using -race , the detector says there is a race condition on the channel, because it is being written previously. I am a bit surprised because my understanding was channels were "decoupling" the write and the read operation: so you can keep writing and another goroutine reading asynchronously. This output gave me the impression a goroutine should not write while another is reading, or something similar. Is it correct? At which extent? thank you in advance FEM. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.