by nbsande · 2y ago · 0 comments
https://www.tornadoweb.org/en/stable/concurrent.html#tornado...
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.
That isn't true. If you use a ProcessPoolExecutor as the target instead of the default executor, you will use multiple processes in pure Python code.
https://docs.python.org/3/library/asyncio-eventloop.html#asy...