|| at Mar 30, 2014 at 3:35 am
You are right to be concerned, there is no synchronisation for that, but
you should ask your best friend here:
$ go run -race race.go
10 buffer full
WARNING: DATA RACE
Read by goroutine 3:
Previous write by main goroutine:
Goroutine 3 (running) created at:
Found 1 data race(s)
exit status 66
On Sat, 2014-03-29 at 19:44 -0700, email@example.com wrote:
Is is safe to disable a select case (set channel to nil) from another
goroutine? Seems like it probably isn't, but I'd like to get
verification. I threw together a little example
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 firstname.lastname@example.org.
For more options, visit https://groups.google.com/d/optout.