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 aaraney
Recipients aaraney, docs@python
Date 2020-06-26.15:24:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593185096.75.0.03844537767.issue41127@roundup.psfhosted.org>
In-reply-to
Content
I found an issue with the concurrent.futures.ProcessPoolExecuter() example (#3) in the asyncio event loops documentation. The call to asyncio.run(main()) should be guarded by `__name__=="__main__":`, as it sits now a RuntimeError is thrown.

https://docs.python.org/3/library/asyncio-eventloop.html#executing-code-in-thread-or-process-pools
History
Date User Action Args
2020-06-26 15:24:56aaraneysetrecipients: + aaraney, docs@python
2020-06-26 15:24:56aaraneysetmessageid: <1593185096.75.0.03844537767.issue41127@roundup.psfhosted.org>
2020-06-26 15:24:56aaraneylinkissue41127 messages
2020-06-26 15:24:56aaraneycreate