code: func WithAttempts(attempts int) Handler {
  	opts := DefaultOpts
  	opts.Attempts = attempts
  	return &impl{opts: opts}
  }
docs: // WithAttempts new retry Handler with given attempts. Other opts are set to default.