rdhabalia commented on a change in pull request #577: CPP add receiveAsync API
URL: https://github.com/apache/incubator-pulsar/pull/577#discussion_r128061777
 
 

 ##########
 File path: pulsar-client-cpp/include/pulsar/ConsumerConfiguration.h
 ##########
 @@ -33,6 +33,7 @@ class PulsarWrapper;
 
 /// Callback definition for non-data operation
 typedef boost::function<void(Result result)> ResultCallback;
+typedef boost::function<void(const Message& msg)> ReceiveCallback;
 
 Review comment:
   it's a async-receive and it will never have any failure as a result and it 
only returns a message when available so, I think there is no need of result in 
this case.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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

Reply via email to