Files

16 lines
276 B
Go

package resilience
import (
"context"
"time"
)
func RetryWithContext(
ctx context.Context,
attempts int,
delay time.Duration,
fn func(context.Context) error,
) error {
panic("TODO: ponawiaj fn(ctx) do attempts razy, respektując ctx.Done() podczas czekania delay")
}