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)