Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/backoff/__init__.py: 100%
6 statements
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-07 06:35 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-07 06:35 +0000
1# coding:utf-8
2"""
3Function decoration for backoff and retry
5This module provides function decorators which can be used to wrap a
6function such that it will be retried until some condition is met. It
7is meant to be of use when accessing unreliable resources with the
8potential for intermittent failures i.e. network resources and external
9APIs. Somewhat more generally, it may also be of use for dynamically
10polling resources for externally generated content.
12For examples and full documentation see the README at
13https://github.com/litl/backoff
14"""
15from backoff._decorator import on_exception, on_predicate
16from backoff._jitter import full_jitter, random_jitter
17from backoff._wait_gen import constant, expo, fibo, runtime
19__all__ = [
20 'on_predicate',
21 'on_exception',
22 'constant',
23 'expo',
24 'fibo',
25 'runtime',
26 'full_jitter',
27 'random_jitter',
28]
30__version__ = "2.2.1"