HavretGC edited a comment on issue #4: [WIP] Failover implementation URL: https://github.com/apache/activemq-nms-amqp/pull/4#issuecomment-508668693 @cjwmorgan-sol You made an excellent point. Cancel wasn't blocking and as a result the whole connection stop wasn't blocking. Below you can find simple snipped with proposed implementation. https://gist.github.com/HavretGC/e99f39b72345fda65434e0685eade64e Basically if you cancel ActionBlock it will process the last message to the end, then it will change its state to cancelled. This operation can be "awaited" on ActionBlock Completion task. As a result the spec requirement can be fulfilled. [Update] I've pushed necessary changes with corresponding integration tests. I hope it is well covered.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
