返回 DeepSeek-Reasonix
README.md
1 # backoff
2
3 Exponential backoff delays.
4
5 ```python
6 from backoff import next_delay
7
8 next_delay(attempt) # attempt is 0-based
9 ```
10
11 `next_delay(k)` returns `min(8.0, 0.5 * 2**k)` seconds: 0.5, 1.0, 2.0, 4.0,
12 then capped at 8.0 for every later attempt.
13
13 lines MARKDOWN