Open K1T3K1 opened 1 year ago
Close callback receives not only sender but exception too. Here you can see how it goes: https://github.com/mosquito/aio-pika/blob/4abca046d81656dc10de9fad8acbd654ced964db/aio_pika/connection.py#L86 https://github.com/mosquito/aio-pika/blob/4abca046d81656dc10de9fad8acbd654ced964db/aio_pika/channel.py#L205 But here I found it receives future with the exception set: https://github.com/mosquito/aio-pika/blob/4abca046d81656dc10de9fad8acbd654ced964db/aio_pika/robust_connection.py#L101-L104 @mosquito is it correct? Why do we need future here?
I added third arg to close callback and it is working
I'm want to add Callbacks to my RobutConnection
that's the method signature
And thats how I add my callbacks
what am I doing wrong? Documentation says nothing about it