Closed antondalgren closed 4 years ago
or better yet, send Cancel with no_wait = false and then on CancelOk from the server we delete the consumer.
or better yet, send Cancel with no_wait = false and then on CancelOk from the server we delete the consumer. @carlhoerberg If we have high prefetch there might still be unhandeld messages when we get CancelOk
Ok, but then maybe send a special message on the @deliveries channel in Channel, when a CancelOk comes in. So that it is the delivery loop method that deletes the callback function
currently all messages to a channel are processed on a single fiber. wondering if would be a better idea to have a fiber per consumer instead. and then we close that fiber when we get the CancelOk
Your changes looks good to me! @carlhoerberg 🚀 🎉
Subscriber should still process the messages it's assigned to
Co-authored-by: Anders Bälter anders@84codes.com