[issue41127] Executing code in thread or process pools: run_in_executor example
New submission from Austin Raney <aaraney@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-t... ---------- assignee: docs@python components: Documentation messages: 372428 nosy: aaraney, docs@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@bugs.python.org> <https://bugs.python.org/issue41127> _______________________________________
participants (1)
-
Austin Raney