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") }