Sorry, for clarification... the above should be, if you 'put something like 
time.Sleep(time.Second * 1) *in the go routine*...'

On Sunday, April 18, 2021 at 12:32:39 AM UTC-5 Trig wrote:

> Can somebody tell me why this is?  It won't work on the playground; 
> however, put something like time.Sleep(time.Second * 1) and put the last 
> allocs in a loop... and you'll see it's literally MBs of Allocs used that 
> never get released.
>
> What am I doing wrong, or not understanding here?  I thought go routines 
> got completely removed after they've returned (assuming they're not blocked 
> from doing so).
>
> https://play.golang.org/p/JfaOVnpMUpf
>

-- 
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/3a2d5a06-dbef-4be2-98f9-fe86c0818313n%40googlegroups.com.

Reply via email to