Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Modify 'times' argument in 'retry' to do what it says in the documentation #195

Closed
YuvalEvron opened this issue Aug 6, 2019 · 0 comments · Fixed by #196
Closed

Modify 'times' argument in 'retry' to do what it says in the documentation #195

YuvalEvron opened this issue Aug 6, 2019 · 0 comments · Fixed by #196

Comments

@YuvalEvron
Copy link
Contributor

:param times: How many times to retry the function.

While in reality:

if isinstance(times, Timer):
        stopper = times  # a timer is a valid stopper
    elif isinstance(times, Duration):
        stopper = Timer(expiration=times)
    elif isinstance(times, int):
        stopper = ExpiringCounter(times)
@YuvalEvron YuvalEvron changed the title Modify retry times argument to do what it says in the documentation Modify 'times' argument in 'retry' to do what it says in the documentation Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant