[New-bugs-announce] [issue41127] Executing code in thread or process pools: run_in_executor example
Austin Raney
report at bugs.python.org
Fri Jun 26 11:24:56 EDT 2020
New submission from Austin Raney <aaraney at crimson.ua.edu>:
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
----------
assignee: docs at python
components: Documentation
messages: 372428
nosy: aaraney, docs at python
priority: normal
severity: normal
status: open
title: Executing code in thread or process pools: run_in_executor example
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41127>
_______________________________________
More information about the New-bugs-announce
mailing list