asyncio.Timeout
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Example: async with asyncio.timeout(5): await some_task() Will interrupt the await and raise TimeoutError if some_task() takes longer than 5 seconds. Co-authored-by: Guido van Rossum <guido@python.org>