Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-46771: Implement asyncio context managers for handling timeouts (GH-31394) | Andrew Svetlov | 2022-03-10 | 1 | -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> |