You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Zero dependencies. Memory-bounded. No goroutine leaks. No panics.**
9
-
10
-
*Hard guarantees: Bounded memory (1000 errors max). No allocations in hot path. Context-aware cancellation.*
11
-
12
-
Actively maintained fork of [avast/retry-go](https://github.com/avast/retry-go) focused on correctness and resource efficiency. 100% API compatible drop-in replacement.
8
+
Modern fork of [avast/retry-go/v4](https://github.com/avast/retry-go) focused on correctness, reliability and efficiency. 100% API-compatible drop-in replacement.
13
9
14
10
**Production guarantees:**
15
11
- Memory bounded: Max 1000 errors stored (configurable via maxErrors constant)
@@ -22,6 +18,12 @@ Actively maintained fork of [avast/retry-go](https://github.com/avast/retry-go)
22
18
23
19
## Quick Start
24
20
21
+
### Installation
22
+
23
+
```bash
24
+
go get github.com/codeGROOVE-dev/retry
25
+
```
26
+
25
27
### Simple Retry
26
28
27
29
```go
@@ -86,31 +88,27 @@ retry.AttemptsForError(1, sql.ErrTxDone) // One retry for tx errors
86
88
retry.AttemptsForError(5, ErrServiceUnavailable) // More retries for 503s
87
89
```
88
90
89
-
## Failure Modes & Limits
91
+
## Changes from avast/retry-go/v4
90
92
91
-
| Scenario | Behavior | Limit |
92
-
|----------|----------|-------|
93
-
| Error accumulation | Old errors dropped after limit | 1000 errors |
0 commit comments