funcy
funcy copied to clipboard
feat($retry): enable capped exponential backoff and jitter via keyword arguments
Summary
- Enable exponential backoff via keyword arguments.
Checklist
- [x] Implement unit test cases.
Reason
- Currently, the feature supports highly customized retry intervals via a pass-in callable argument.
- However, it's hard to comprehend that the argument
timeoutcan also accept a callable object without tracing the source code. - Capped exponential backoffs and jitter are already well-known approaches, maybe you can consider making them specific features via keyword arguments.