[go-nuts] Re: Help me, i don't understand why

2016-09-06 Thread Ринат Галиев
Yes, thank you, but i have decided it)) -- 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://

[go-nuts] Re: Help me, i don't understand why

2016-09-05 Thread Van Hu
Hope this helps: https://play.golang.org/p/5UnIuSE50F package main import "time" func main() { // redact ch1 := make(chan struct{}) ch2 := make(chan struct{}) go func() { for _, value := range []int{1, 3, 5} { // redact println(value) // redact <-ch1 ch2<-struct{}{} } }() go func() { for _, val