summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/timeouts.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-46771: Implement asyncio context managers for handling timeouts (GH-31394)Andrew Svetlov2022-03-101-0/+151
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>