Re: [go-nuts] deadlock with a empty select{} in main goroutine.

2020-04-08 Thread Ian Lance Taylor
On Wed, Apr 8, 2020 at 9:17 AM wrote: > > I am not able to understand why this piece of go code deadlocks. > Doesn't empty select{} blocks forever, irrespective of other go routines to > wake that up. > > https://play.golang.org/p/zBWZPjTGYX7 > > Please help me to understand why code is detecte

Re: [go-nuts] deadlock with a empty select{} in main goroutine.

2020-04-08 Thread burak serdar
On Wed, Apr 8, 2020 at 10:17 AM wrote: > > > Hi All, > > I am not able to understand why this piece of go code deadlocks. > Doesn't empty select{} blocks forever, irrespective of other go routines to > wake that up. > > https://play.golang.org/p/zBWZPjTGYX7 > > Please help me to understand why