Is there a way to find out if channel is closed without having separate goroutine that watches channel.NotifyClose events.
I'm trying to implement channel pool and I'd like to check if channel is closed when getting it from pool.
For now I'm using workaround by checking errors on QueueInspect on some dummy queue.
Is there a way to find out if channel is closed without having separate goroutine that watches channel.NotifyClose events. I'm trying to implement channel pool and I'd like to check if channel is closed when getting it from pool.
For now I'm using workaround by checking errors on QueueInspect on some dummy queue.
Related question on SO: https://stackoverflow.com/questions/17108426/how-to-check-if-the-channel-is-still-working-in-golangs-rabbitmq-client