Message377695
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())
await asyncio.sleep(0)
task.cancel()
res = await asyncio.wait({task})
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.run_until_complete(main(loop))
``` |
|
Date |
User |
Action |
Args |
2020-09-30 11:01:52 | rkojedzinszky | set | recipients:
+ rkojedzinszky, asvetlov, yselivanov |
2020-09-30 11:01:52 | rkojedzinszky | set | messageid: <1601463712.11.0.444677837126.issue41891@roundup.psfhosted.org> |
2020-09-30 11:01:52 | rkojedzinszky | link | issue41891 messages |
2020-09-30 11:01:51 | rkojedzinszky | create | |
|