Skip to content

Commit 46ea4ed

Browse files
committed
Make changelog more helpful
1 parent 23204f7 commit 46ea4ed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ You can find our backwards-compatibility policy [here](https://github.com/hynek/
1717

1818
### Added
1919

20-
- `stamina.RetryingCaller` and `stamina.AsyncRetryingCaller` that allow even easier retries of single callables.
20+
- `stamina.RetryingCaller` and `stamina.AsyncRetryingCaller` that allow even easier retries of single callables: `stamina.RetryingCaller(attempts=5).on(ValueError)(do_something, "foo", bar=42)` and `stamina.RetryingCaller(attempts=5)(ValueError, do_something, "foo", bar=42)` will call `do_something("foo", bar=42)` and retry on `ValueError` up to 5 times.
21+
22+
`stamina.RetryingCaller` and `stamina.AsyncRetryingCaller` take the same arguments as `stamina.retry()`, except for `on` that can be bound separately.
23+
2124
[#56](https://github.com/hynek/stamina/pull/56)
2225
[#57](https://github.com/hynek/stamina/pull/57)
2326

0 commit comments

Comments
 (0)