On Tue, Mar 4, 2025 at 2:41 PM cpu...@gmail.com <cpui...@gmail.com> wrote:

> I've recently run across  
> https://stackoverflow.com/questions/36417199/how-to-broadcast-message-using-channel
>  by icza and tried to use the simple broker in my project.
>
> Unfortunately, it panics with send on closed channel. I couldn't figure out 
> why or where and created a reproducer: https://play.golang.com/p/8hrHf4-nGY2
>
> Can someone spot why this would panic (except for the obvious reason) and how 
> to fix it?

I didn't analyze the code, but maybe this can help:
https://play.golang.com/p/Ix003aXFFul

-- 
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/CAA40n-Wp2xVvLXdo%3D_349EfJKiRTq%2Bj71YcHNMZvafzVNg24SQ%40mail.gmail.com.

Reply via email to