Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
pip._vendor.tenacity.wait.wait_chain Class Reference
Inheritance diagram for pip._vendor.tenacity.wait.wait_chain:
Inheritance graph
[legend]
Collaboration diagram for pip._vendor.tenacity.wait.wait_chain:
Collaboration graph
[legend]

Public Member Functions

None __init__ (self, *wait_base strategies)
 
float __call__ (self, "RetryCallState" retry_state)
 
- Public Member Functions inherited from pip._vendor.tenacity.wait.wait_base
"wait_combine" __add__ (self, "wait_base" other)
 
typing.Union["wait_combine", "wait_base"] __radd__ (self, "wait_base" other)
 

Public Attributes

 strategies
 

Detailed Description

Chain two or more waiting strategies.

If all strategies are exhausted, the very last strategy is used
thereafter.

For example::

    @retry(wait=wait_chain(*[wait_fixed(1) for i in range(3)] +
                           [wait_fixed(2) for j in range(5)] +
                           [wait_fixed(5) for k in range(4)))
    def wait_chained():
        print("Wait 1s for 3 attempts, 2s for 5 attempts and 5s
               thereafter.")

Member Function Documentation

◆ __call__()

float pip._vendor.tenacity.wait.wait_chain.__call__ (   self,
"RetryCallState"  retry_state 
)

The documentation for this class was generated from the following file: