try
try copied to clipboard
Simple idiomatic retry package for Go
Go 1.18 is more strict about unused variables. These variables need to be removed to keep the project building with Go 1.18.
Hi Thanks for sharing this. What are your thoughts on implementing concurrent retries. We could make it go to a buffered channel on success and break/return as soon as that...
There was two places with max retry limit logic : 1) variable try.MaxRetries 2) callback fn(attempt) return value (cont) Second only worked if attempt number was less than MaxRetries number,...
It looks like it is not possible to use this package in several places with different values for `MaxRetries`. Also it is not concurrency safe to mutate this value if...