MCPcopy
hub / github.com/redis/redis-py / compute

Method compute

redis/backoff.py:22–24  ·  view source on GitHub ↗

Compute backoff in seconds upon failure

(self, failures: int)

Source from the content-addressed store, hash-verified

20
21 @abstractmethod
22 def compute(self, failures: int) -> float:
23 """Compute backoff in seconds upon failure"""
24 pass
25
26
27class ConstantBackoff(AbstractBackoff):

Callers 2

call_with_retryMethod · 0.45
call_with_retryMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected