[issue32309] Implement asyncio.run_in_executor shortcut
Kyle Stanley
report at bugs.python.org
Sun Jan 26 04:01:20 EST 2020
Kyle Stanley <aeros167 at gmail.com> added the comment:
> So, I just had an interesting idea... what if ThreadPool.run() returned a Task instead of a coroutine object?
After having some time to think this over, I prefer the current behavior. I don't think there would be significant enough improvement from returning a Task instead, and it would likely result in an overall performance loss.
Also, as a general update on the project, I'm close to being ready to open a PR to implement asyncio.ThreadPool. I finished the basic implementation and added a decent number of new tests to ensure its functionality. Here's my current progress: https://github.com/python/cpython/compare/master...aeros:asyncio-threadpool
I just need to work on adding the new documentation, and more specifically finding a good place for it in the current asyncio docs. Do you have any ideas for that, Yury? I figured that you might already have a preference in mind.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32309>
_______________________________________
More information about the Python-bugs-list
mailing list