Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-95051: ensure that timeouts scheduled with `asyncio.Timeout` that have ↵ | Miss Islington (bot) | 2022-07-26 | 1 | -0/+24 |
| | | | | | | | | already expired are deliverered promptly (GH-95109) (GH-95216) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> (cherry picked from commit 0c6f898005099be189ee65bcfda659f5fc13b802) Co-authored-by: Thomas Grainger <tagrain@gmail.com> | ||||
* | bpo-46771: Implement asyncio context managers for handling timeouts (GH-31394) | Andrew Svetlov | 2022-03-10 | 1 | -0/+229 |
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> |