smbecker commented on issue #217:
URL: 
https://github.com/apache/pulsar-dotpulsar/issues/217#issuecomment-2146058143

   > Hi @smbecker Just to make sure I understand, you want a "nice shutdown" 
functionality sort of like Complete+Completion on ISendChannel?
   
   I don't think it really has anything to do with `ISendChannel`. What I was 
looking for was a way to provide a different `CancellationToken` used for 
[Process](https://github.com/apache/pulsar-dotpulsar/blob/master/src/DotPulsar/Internal/MessageProcessor.cs#L84)
 than the one used for [processing each 
message](https://github.com/apache/pulsar-dotpulsar/blob/master/src/DotPulsar/Internal/MessageProcessor.cs#L141)
 or acknowledging 
[https://github.com/apache/pulsar-dotpulsar/blob/master/src/DotPulsar/Internal/MessageProcessor.cs#L154-L162].
 The idea being that when `MessageProcessor.Process` is cancelled, then any 
messages that have already been received (and processing started) could 
continue to process until completion and then be acknowledged before ultimately 
terminating. 


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