noor_z 8 days ago

It's very possible I'm just bad at Go but it seems to me that the result of trying to adhere to CSP in my own Go projects is the increasing use of dedicated lifecycle management channels like `shutdownChan`. Time will tell how burdensome this pattern proves to be but it's definitely not trivial to maintain now.

2
fireflash38 8 days ago

Is using a server context a bad idea? Though tbh using it for the cancelation is a shutdown channel in disguise hah.

sapiogram 8 days ago

You're not bad at Go, literally everyone I know who has tried to do this has concluded it's a bad idea. Just stop using channels, there's a nice language hidden underneath the CSP cruft.

vrosas 8 days ago

I've found the smartest go engineer in the room is usually the one NOT using channels.

pdimitar 5 days ago

Okay, but what are the viable alternatives?