Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What do you mean it already runs in threads? It does so if you specify it with run_in_executor [1], or if you run multiple event loops at once, but it doesn't automatically.

[1] https://docs.python.org/3/library/asyncio-eventloop.html#asy...



Woops, yeah, you're right. I thought the default executor was a threadpool, my mistake. However, in that case, I assume that the default executor will not change to multithreaded when no-gil comes.


There isn't an executor at all, at least not in the concurrent.futures.Executor sense. It just runs in the thread where you call asyncio.run.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: