all goroutines are asleep - deadlock

当 channelnil的时候,无论是传入数据还是取出数据,都会永久的block。

 

waitgroup没有done也会出现all goroutines are asleep - deadlock

posted @ 2020-05-15 09:33  飞晨信息  阅读(557)  评论(0)    收藏  举报