[issue41891] asyncio.wait_for does not wait for task/future to be completed in all cases
Change by Richard Kojedzinszky : -- keywords: +patch pull_requests: +21487 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22461 ___ Python tracker <https://bugs.python.org/issu
[issue41891] asyncio.wait_for does not wait for task/future to be completed in all cases
New submission from Richard Kojedzinszky : This code should run without errors: ``` #!/usr/bin/env python import asyncio async def task1(): cv = asyncio.Condition() async with cv: await asyncio.wait_for(cv.wait(), 10) async def main(loop): task = loop.create_task(task1