cbornet commented on PR #11:
URL: 
https://github.com/apache/pulsar-client-reactive/pull/11#issuecomment-1292492984

   > The changes readMessage / readMessages and consumeMessage / 
consumeMessages will also have to be reverted. It's a different operation when 
a single message is read or consumed compared to reading or consuming many.
   When reading or consuming a single message, the ReactiveStream (Mono in the 
case of Reactor) completes after a single message.
   
   If you wrap consumeMessages result in a Mono, it will cancel the Flux after 
receiving the first message and so the Flux completes. The tests I did showed 
it works well, receiveAsync is called only once.


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