Chromium Code Reviews| Index: common/retry/retry.go |
| diff --git a/common/retry/retry.go b/common/retry/retry.go |
| index 11c7fcab20f02b0b4fc6725490a4c7772809975b..976707c7109024ce602e44112a6cd0cb6d7d13f7 100644 |
| --- a/common/retry/retry.go |
| +++ b/common/retry/retry.go |
| @@ -25,6 +25,9 @@ type Iterator interface { |
| Next(context.Context, error) time.Duration |
| } |
| +// Generator is a function that produces an Iterator instance. |
| +type Generator func() Iterator |
|
dnj (Google)
2016/01/21 04:36:24
This concept is used enough, we might as well codi
|
| + |
| // Retry executes a function 'f'. If the function returns an error, it will |
| // be re-executed according to a retry plan. |
| // |