rholder / retrying

Retrying is an Apache 2.0 licensed general-purpose retrying library, written in Python, to simplify the task of adding retry behavior to just about anything.
Apache License 2.0
1.91k stars 157 forks source link

None decorator-like usage of retrying #63

Open banjoh opened 8 years ago

banjoh commented 8 years ago

The documentation focuses on using the retry call as a decorator. Does it mean that the internal Retrying interface is bound to change? If not, please state that in the docs and maybe give an example usage.

In some cases I would like to use retrying like below, but am afraid the interface may change.

retry_call = Retrying(stop_max_attempt_number=self.retry_count, wait_fixed=self.retry_sleep)
retry_call.call(self._remote_call)