RetryFunc is a function that returns true when it is done and it should be retried no longer. It should return error if there has been an error. The error will be logged if done==false (should keep retrying). The error will be returned by the calling function if done==true (should stop retrying).
func() (done bool, err error)
| 49 | // (should keep retrying). The error will be returned by the calling function if done==true (should |
| 50 | // stop retrying). |
| 51 | type RetryFunc func() (done bool, err error) |
| 52 | |
| 53 | // RetryWithTimeout retries the RetryFunc until the timeout occurs. It will retry once more after |
| 54 | // the timeout to avoid race conditions at the expense of running for slightly longer than timeout |
nothing calls this directly
no outgoing calls
no test coverage detected