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 achimnol
Recipients achimnol, asvetlov, terry.reedy, yselivanov, zkonge
Date 2020-07-19.09:33:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I've searched the Python documentation and the docs must be updated to explicitly state the necessity of aclose().


I'm not sure that what the original authors' intention is, but for me, it looks like that calling aclose() is an optional thing and the responsibility to call aclose() on async generators is left to the asyncgen-shutdown handler of the event loop.

The example in this issue show that we need to aclose asyncgens whenever we are done with it, even far before shutting down the event loop.
Date User Action Args
2020-07-19 09:33:58achimnolsetrecipients: + achimnol, terry.reedy, asvetlov, yselivanov, zkonge
2020-07-19 09:33:58achimnolsetmessageid: <>
2020-07-19 09:33:58achimnollinkissue41229 messages
2020-07-19 09:33:57achimnolcreate