Deviopath › Go

Retry with Backoff List

Hard · Reliability

Call(attempts) succeeds on the last attempt only if succeedsOn matches that 1-based attempt, else it "fails". Retry up to maxTries. Return "ok" or "fail".

Write Retry(maxTries, succeedsOn) that simulates attempts 1..maxTries and stops early on success.

Next: Circuit Breaker