[Python-ideas] asyncio.to_process function, similar to asyncio.to_thread function

2021-01-03 Thread Abdulla Al Kathiri
Hello all, I suppose asyncio.to_thread uses concurrent.futures.ThreadPoolExecutor under the hood, so it saves us from getting the running event loop and calling the loop.run_in_executor function . Why don’t we have a similar function for the ProcessPoolExecutor, e.g. asyncio.to_process? Abdu

[Python-ideas] Re: asyncio.to_process function, similar to asyncio.to_thread function

2021-01-03 Thread Inada Naoki
On Sun, Jan 3, 2021 at 6:44 PM Abdulla Al Kathiri wrote: > > I suppose asyncio.to_thread uses concurrent.futures.ThreadPoolExecutor under > the hood, so it saves us from getting the running event loop and calling the > loop.run_in_executor function . Why don’t we have a similar function for the