Re:Show HN: Bringing multithreading to Python's async event ...
by noident on Thursday October 03, 2024 @12:48PM
(#41732451)
> but my use case was more making async code utlize the cpu better
But run_in_executor achieves that as well! If you use no-GIL Python and a thread pool (or GIL Python with a Process pool), you will utilize more CPU cores.
But run_in_executor achieves that as well! If you use no-GIL Python and a thread pool (or GIL Python with a Process pool), you will utilize more CPU cores.