SimpleAmqpClient
SimpleAmqpClient copied to clipboard
Way to close a channel other than going out of scope
I have been using SimpleAmqpClient in my project. However, I could not find a way to close a channel manually. I can see the only way in the SimpleAmqpClient a channel closes is when the destructor is called. Also, in the test examples, I can see that we create a Channel in our code explicitly but not close it explicitly since, it will be closed when the test finishes by the destructor call. However, in my experiment, I need to close the channel before my method finishes. Is there any other way to close a channel using SimpleAmqpClient?
I think you can just channel_ptr.reset();