After a connection or a channel has been closed, consider to send the error to the registered listeners in separate goroutines.
If an unbuffered chan is registered as a listener, it will block the notification of other listeners. In my opinion, this is an unintended side effect, since a developer may not have knowledge of all registered listeners and their corresponding buffers.
After a connection or a channel has been closed, consider to send the error to the registered listeners in separate goroutines.
If an unbuffered chan is registered as a listener, it will block the notification of other listeners. In my opinion, this is an unintended side effect, since a developer may not have knowledge of all registered listeners and their corresponding buffers.