File: add-stop-before-delay-a775f88ac872c923.yaml

package info (click to toggle)
python-tenacity 9.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 700 kB
  • sloc: python: 3,179; makefile: 11
file content (7 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
---
features:
  - |
    Added a new stop function: stop_before_delay, which will stop execution
    if the next sleep time would cause overall delay to exceed the specified delay. 
    Useful for use cases where you have some upper bound on retry times that you must
    not exceed, so returning before that timeout is preferable than returning after that timeout.