Skip to main content

A decorator to recycle tasks in the event loop

Project description

A decorator to recycle tasks in the event loop


pip install aiorecycle

Usage example

import asyncio

import aiorecycle

async def task():
    if asyncio.get_event_loop().time() % 2 == 0:
        print('make some periodic work')

async def main():
    await task()
    await asyncio.sleep(3)  # emulate very important work

if __name__ == "__main__":


aiorecycle library is offered under Apache 2 license.

Project details

Download files

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

Source Distribution

aiorecycle-0.0.2.tar.gz (1.9 kB view hashes)

Uploaded source

Built Distribution

aiorecycle-0.0.2-py3-none-any.whl (6.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page