Skip to content

v2.1

Choose a tag to compare

@inyutin inyutin released this 28 Nov 15:31
· 86 commits to master since this release

Make request awaitable:

from aiohttp_retry import RetryClient, RetryOptions

async def main():
    retry_options = RetryOptions(attempts=1)
    retry_client = RetryClient(raise_for_status=False, retry_options=retry_options)

    response = await retry_client.get('/ping')
    print(response.status)
        
    await retry_client.close()