timeout decoratorΒΆ

Decorator that ensures the execution time limit for the decorated function is met.

from aiomisc import timeout

@timeout(1)
async def bad_func():
    await asyncio.sleep(2)