infinite retry ??
tech-a-go-go opened this issue · 2 comments
tech-a-go-go commented
Hi there,
How can I make infinite retry ??
Thanks
JaSei commented
Hi.
We don't support 'infinite' retry. I'm not sure, if it makes sence. Billions of retries sounds like problem and no like feature.
You can set max of uint
(4,294,967,295) set to Attempts
if you need simulate 'infinite' retry.
eg.
import (
"math"
"github.com/avast/retry-go"
)
...
err := retry.Do(
func() error {
...
},
Attempts(math.MaxUint32),
)