This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author aeros
Recipients aeros, asvetlov, primal, yselivanov
Date 2019-11-16.22:47:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1573944429.4.0.74259650545.issue32309@roundup.psfhosted.org>
In-reply-to
Content
> (a) design the API correctly; 
> (b) ship something that definitely works with a proven ThreadPoolExecutor; 

Yury and Andrew, here's my latest API design for asyncio.ThreadPool: https://github.com/python/cpython/compare/master...aeros:asyncio-threadpool. This is for the initial ThreadPoolExecutor version, using the design based on Yury's suggestions. I plan on extending upon the docstrings, writing tests, and the documentation for it.

My idea was to use the new Lib/asyncio/pools.py and AbstractPool to eventually implement an asyncio.ProcessPool (and the native version of asyncio.ThreadPool).

I plan on opening a PR after I finish writing some tests and documentation, I'd like to include it all in the same PR if possible. But let me know what you think about the current API design, it would be much easier for me to make modifications at this stage.
History
Date User Action Args
2019-11-16 22:47:09aerossetrecipients: + aeros, asvetlov, yselivanov, primal
2019-11-16 22:47:09aerossetmessageid: <1573944429.4.0.74259650545.issue32309@roundup.psfhosted.org>
2019-11-16 22:47:09aeroslinkissue32309 messages
2019-11-16 22:47:08aeroscreate