Waiting for a WaitGroup and ranging over a channel results in a “fatal error: all goroutines are asleep - deadlock!”

前端 未结 0 1923
清歌不尽
清歌不尽 2020-12-06 15:43

I launch goroutines from the main func, waiting for all to finish using a WaitGroup. Each goroutine also emits data to a Channel and i iterate the

相关标签:
回答
  • 消灭零回复
提交回复
热议问题