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
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