2.7. @aiomisc.timeout
ΒΆ
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)
@aiomisc.timeout
ΒΆ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)