Operation is the function Retry calls. It is invoked at least once and may be retried on error. Return a Permanent error to stop retrying immediately, or a RetryAfterError to control the delay before the next attempt.
func() (T, error)
| 13 | // retried on error. Return a Permanent error to stop retrying immediately, or a |
| 14 | // RetryAfterError to control the delay before the next attempt. |
| 15 | type Operation[T any] func() (T, error) |
| 16 | |
| 17 | // Notify is called after a failed attempt that will be retried, with the |
| 18 | // operation error and the backoff duration before the next attempt. It is |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…