func NewBackoff(duration time.Duration, factor float64, jitter float64, steps int, cap time.Duration) *Backoff {
	return &Backoff{
		Duration: duration,
		Factor:   factor,
		Jitter:   jitter,
		Steps:    steps,
		Cap:      cap,
	}
}
// NewBackoff creates a new Backoff.
NewBackoff creates a new Backoff.
// NewBackoff creates a new Backoff .
func NewBackoff(duration time.Duration, factor float64, jitter float64, steps int, cap time.Duration) *Backoff {
	return &Backoff{
		Duration: duration,
		Factor:   factor,
		Jitter:   jitter,
		Steps:    steps,
		Cap:      cap,
	}
}
func NewBackoff ( duration time . Duration , factor float64 , jitter float64 , steps int , cap time . Duration ) * Backoff { return & Backoff { Duration : duration , Factor : factor , Jitter : jitter , Steps : steps , Cap : cap , } }
NewBackoff creates a new Backoff.
NewBackoff creates a new Backoff .