[Python-ideas] Add `n_threads` argument to `concurrent.futures.ProcessPoolExecutor`

Ram Rachum ram.rachum at gmail.com
Fri Jan 17 14:00:50 CET 2014


Hi,

I'd like to use `concurrent.futures.ProcessPoolExecutor` but have each 
process contain multiple worker threads. We could have an `n_threads` 
argument to the constructor, defaulting to 1 to maintain backward 
compatibility, and setting a value higher than 1 would cause multiple 
threads to be spawned in each process.

What do you think? 


Ram.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140117/72a4c4fc/attachment.html>


More information about the Python-ideas mailing list