We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ecbb9c commit f667829Copy full SHA for f667829
1 file changed
core/retry.go
@@ -159,7 +159,6 @@ request retry_interval (12 sec) randomized_interval (0.5) randomized_int
159
Reference: https://github.com/cenkalti/backoff/blob/v4/exponential.go#L9
160
*/
161
162
-// TODO: Make config optional by using default but passing nil.
163
// Same as Retry only that the functionToRetry can return a value upon correct execution
164
func RetryWithData[T any](functionToRetry func() (T, error), config *RetryParams) (T, error) {
165
f := func() (T, error) {
0 commit comments