HasNext returns whether another attempt will be made if the current
one fails. If it returns true, the following call to Next is
guaranteed to return true.
type Strategy struct {
Total time.Duration// total duration of attempt. Delay time.Duration// interval between each try in the burst. Min int// minimum number of retries; overrides Total}
AttemptStrategy represents a strategy for waiting for an action
to complete successfully.