()
| 445 | } |
| 446 | |
| 447 | func (r *RetryTimeoutError) Error() string { |
| 448 | return fmt.Sprintf("RetryLoop for %v giving up after %v attempts", r.description, r.attempts) |
| 449 | } |
| 450 | |
| 451 | func RetryLoop[T any](ctx context.Context, description string, worker RetryWorker[T], sleeper RetrySleeper) (error, T) { |
| 452 |
no outgoing calls