nodece opened a new pull request, #1256:
URL: https://github.com/apache/pulsar-client-go/pull/1256

   ### Motivation
   
   We are using `time.Sleep` and `for` to execute the retry, which cannot be 
interrupted, this PR will use context and timer to improve this behavior.
   
   The next improvement idea supports passing the context to interrupt the 
retry, when closing the producer or consumer, we need to do that.
   
   ### Modifications
   
   - Add the `Retry` method to execute the try, and use `Retry` instead of 
`time.Sleep` and `for`.


-- 
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: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to