On Wednesday, April 8, 2020 at 6:17:59 PM UTC+2, aravind...@gmail.com 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
>
>
The error message is very clear:
"fatal error: all goroutines are asleep - deadlock!"

The problem is that **all** the goroutines are waiting forever.

Manlio 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/2f29cf8f-0e08-4e83-9a05-d6eb7aa4030d%40googlegroups.com.

Reply via email to