defenseunicorns / pkg

Common Go modules maintained by Defense Unicorns
Apache License 2.0
5 stars 4 forks source link

refactor: retry improvements #72

Closed AustinAbro321 closed 4 months ago

AustinAbro321 commented 4 months ago

Description

Before the retry function was blocking during the default case. If context was cancelled during the function call that's being retried it wouldn't continue. Now it will. Code is generally cleaner as well.