RobertIndie commented on PR #300:
URL: 
https://github.com/apache/pulsar-client-cpp/pull/300#issuecomment-1633696870

   > It's designed to be the current behavior. We can receive some messages 
first, then try to receive the rest messages.
   > You'd better add the assertion explicitly after calling receiveAtMost. 
From the references of receiveAtMost (in AcknowledgeTest), I think we don't 
need to assert there is no more messages
   
   Currently, the `receiveAtMost` doesn't implement the 'at most' guarantee. 
This would confuse the developer.
   I think we could have two options:
   1. Implement the at most guarantee for `receiveAtMost`
   2. Change it to `receiveAtLeast`
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to