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.

classification
Title: Executing code in thread or process pools: run_in_executor example
Type: Stage:
Components: Documentation Versions: Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: aaraney, docs@python
Priority: normal Keywords:

Created on 2020-06-26 15:24 by aaraney, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg372428 - (view) Author: Austin Raney (aaraney) Date: 2020-06-26 15:24
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
2022-04-11 14:59:32adminsetgithub: 85299
2020-06-26 15:24:56aaraneycreate