newur opened a new pull request #10982:
URL: https://github.com/apache/pulsar/pull/10982


   ### Motivation
   
   Using a MessageListener is simpler than using a endless while loop. The loop 
might work for super basic hello-world examples, but would trap any other app 
with its endless nature. Also the loop might motivate users to move the while 
loop into an own, custom build thread, which is also unnecessary complicated.
   
   ### Modifications
   
   Replace the `while` loop with a `MessageListener`.
   


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


Reply via email to