funcy icon indicating copy to clipboard operation
funcy copied to clipboard

feat($retry): enable capped exponential backoff and jitter via keyword arguments

Open RainrainWu opened this issue 3 years ago • 0 comments

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 timeout can 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.

RainrainWu avatar May 23 '22 14:05 RainrainWu