A reviewed change to a real system
A pull request with the review thread, the check that catches the defect, and your explanation of why.
for (let attempt = 0; ; attempt++) {- await sleep(500)+ if (attempt >= MAX_ATTEMPTS) throw new RetryExhausted(job)+ await sleep(backoff(attempt))