We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9a7017 commit 8dd4aeeCopy full SHA for 8dd4aee
options.go
@@ -232,19 +232,17 @@ func Context(ctx context.Context) Option {
232
//
233
// example of augmenting time.After with a print statement
234
235
-// type struct MyTimer {}
+// type struct MyTimer {}
236
237
// func (t *MyTimer) After(d time.Duration) <- chan time.Time {
238
// fmt.Print("Timer called!")
239
// return time.After(d)
240
// }
241
242
-// retry.Do(
243
-//
+// retry.Do(
244
// func() error { ... },
245
// retry.WithTimer(&MyTimer{})
246
247
-// )
+// )
248
func WithTimer(t Timer) Option {
249
return func(c *Config) {
250
c.timer = t
0 commit comments