Re: [go-nuts] Waitgroup.done wont Panic?

2020-05-14 Thread Jan Mercl
On Thu, May 14, 2020 at 8:18 AM sperberstephan via golang-nuts wrote: > Here: > https://play.golang.org/p/76AzuAiVGxL > > I thougt If the waitgroup gets below 0 there should be a Panic. > I understand that the goroutine is canceled. So maybe the defer Statement is > Not executed. > But why is

[go-nuts] Waitgroup.done wont Panic?

2020-05-14 Thread sperberstephan via golang-nuts
Hi Folks, Here: https://play.golang.org/p/76AzuAiVGxL I thougt If the waitgroup gets below 0 there should be a Panic. I understand that the goroutine is canceled. So maybe the defer Statement is Not executed. But why is there No warning at the end of Main that some goroutines Had to be