Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1238)

Unified Diff: common/retry/retry.go

Issue 1610993002: LogDog: Add collector service implementation. (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
//

Powered by Google App Engine
This is Rietveld 408576698