This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author samfrances
Recipients asvetlov, samfrances, yselivanov
Date 2019-07-01.00:06:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1561939614.55.0.629918595196.issue37455@roundup.psfhosted.org>
In-reply-to
Content
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
```
History
Date User Action Args
2019-07-01 00:06:54samfrancessetrecipients: + samfrances, asvetlov, yselivanov
2019-07-01 00:06:54samfrancessetmessageid: <1561939614.55.0.629918595196.issue37455@roundup.psfhosted.org>
2019-07-01 00:06:54samfranceslinkissue37455 messages
2019-07-01 00:06:54samfrancescreate