tag | c05339e7fd562533330ec8312d82387adcd4ae4c | |
---|---|---|
tagger | Julien Danjou <julien@danjou.info> | Tue Feb 07 13:24:50 2023 +0100 |
object | 78c8d4bc8596af1143801076faa922f2f21c1bba |
tenacity 8.2.0
commit | 78c8d4bc8596af1143801076faa922f2f21c1bba | [log] [tgz] |
---|---|---|
author | Mehdi ABAAKOUK <sileht@sileht.net> | Mon Feb 06 11:29:32 2023 +0100 |
committer | GitHub <noreply@github.com> | Mon Feb 06 10:29:32 2023 +0000 |
tree | 2bd2b73bddb31c4432792b86268531d7f5dd9875 | |
parent | b93e4dca90cbadfc7db10c23253b4010b991b58f [diff] |
fix: remove __iter__ from AsyncRetring (#387) This method doesn't make sense for AsyncRetrying. And it's even more vicious as: ``` for attempts in AsyncRetrying(): with attempts: await do_for_a_while() ``` will work, but sleep(XXX) coroutine will never be awaited and the call is retried instantly. This change removes the __iter__ method from AsyncRetrying. Co-authored-by: Julien Danjou <julien@danjou.info>