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 8dd4aee commit 7d0fc2bCopy full SHA for 7d0fc2b
README.md
@@ -355,19 +355,17 @@ wait for a set duration for retries.
355
356
example of augmenting time.After with a print statement
357
358
-type struct MyTimer {}
+ type struct MyTimer {}
359
360
func (t *MyTimer) After(d time.Duration) <- chan time.Time {
361
fmt.Print("Timer called!")
362
return time.After(d)
363
}
364
365
-retry.Do(
366
-
+ retry.Do(
367
func() error { ... },
368
retry.WithTimer(&MyTimer{})
369
370
-)
+ )
371
372
#### type RetryIfFunc
373
0 commit comments