[go-nuts] Re: Check Channel is active or not while Writing as writer Go routine

2024-10-31 Thread 'Aniket Pandey' via golang-nuts
Hi All , 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 On Thursday 31 October 2024 at 11:27:09 UTC+5:30 Nico Braun wrote: > On Tuesday 29 October 2024 at 11:31:19 U

Re: [go-nuts] Check Channel is active or not while Writing as writer Go routine

2024-10-25 Thread 'Aniket Pandey' via golang-nuts
Thanks for the ideas guys !! but in my case i have constant running process irrespective number of writes as my writer channel won't stop sending data directly as it has only check if the client Active and that is made false once the Socket Reader function exits and after that i close the chan

[go-nuts] Check Channel is active or not while Writing as writer Go routine

2024-10-24 Thread 'Aniket Pandey' via golang-nuts
Has anyone have implemented the logic in order to check if the channel is active if the channel is active then only will write the data .if yes how to do so? As i am getting the Following error: *panic: **send on closed channel* As a writer go routine i want to only write data to active channe