Skip to main content

Simple retrying for asyncio

Project description

info:Simple retrying for asyncio


pip install async_retrying


import asyncio

from async_retrying import retry

counter = 0

def fn():
    global counter

    counter += 1

    if counter == 1:
        raise RuntimeError

def main():
    yield from fn()

loop = asyncio.get_event_loop()


assert counter == 2


Python 3.3+ is required

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for async_retrying, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size async_retrying-0.2.2.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page