On Thu, Oct 31, 2024 at 5:29 AM 'Aniket Pandey' via golang-nuts
<golang-nuts@googlegroups.com> wrote:
>
> while performing trial and error i just implemented an idea of not closing 
> the channel  in my go-lang code , due to which my server memory was going 
> high , sharing it just FYI

I don't know what happened in your program, but by itself calling
close on a channel will have no effect on memory usage.  Channels
remain in memory until there are no more references to them and they
are garbage collected.  Calling close does not affect that.

Ian

-- 
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 visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcX9i5ByAniPGzOKTH8rmhx8dF5UJRS-FnB7YOop0iyU0g%40mail.gmail.com.

Reply via email to