Nice article. I think it over complicates the situation though and may lead to confusion. Some situations lead naturally to a go routine per request (web server processing) - with a fixed lifetime - others lead to a fixed count of go routines (like services) - permanence. Using ephemeral channels is what leads to the closing situation/complexity. A redesign without ephemeral channels leads to more readily understood code through less complexity. If you find yourself using ephemeral channels or needing to close channels at all a redesign may help. On Nov 2, 2024, at 1:07 PM, tapi...@gmail.com <tapir....@gmail.com> wrote: -- 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/0255FC44-C38A-41B7-B4A2-8409B1C509F4%40ix.netcom.com. |
- Re: [go-nuts] Check Channel i... 'Aniket Pandey' via golang-nuts
- Re: [go-nuts] Check Chann... Robert Engels
- Re: [go-nuts] Check Chann... Jason E. Aten
- Re: [go-nuts] Check Channel is ac... Nico Braun
- [go-nuts] Re: Check Channel is active or n... tapi...@gmail.com
- [go-nuts] Re: Check Channel is active... Nico Braun
- [go-nuts] Re: Check Channel is ac... 'Aniket Pandey' via golang-nuts
- Re: [go-nuts] Re: Check Chann... Ian Lance Taylor
- Re: [go-nuts] Re: Check C... Nico Braun
- Re: [go-nuts] Re: Ch... tapi...@gmail.com
- Re: [go-nuts] Re... Robert Engels