Message346946
One final note: changing the `main()` function from the example to add a zero-sleep seems to fix it, but this seems like a rather ad-hoc solution.
```
async def main():
async for i in double(count()):
if i > 10:
break
print(i)
await asyncio.sleep(0)
```
result:
```
$ python example.py
0
2
4
6
8
10
double() cleanup
count() cleanup
``` |
|
Date |
User |
Action |
Args |
2019-07-01 00:06:54 | samfrances | set | recipients:
+ samfrances, asvetlov, yselivanov |
2019-07-01 00:06:54 | samfrances | set | messageid: <1561939614.55.0.629918595196.issue37455@roundup.psfhosted.org> |
2019-07-01 00:06:54 | samfrances | link | issue37455 messages |
2019-07-01 00:06:54 | samfrances | create | |
|