Message121311
ProcessPoolExecutor allows the max_workers parameter to the constructor to be omitted or None, in which case it will set the max_workers based on the number of CPUs.
It would be nice if ThreadPoolExecutor's constructor worked the same way; having the same interface is one of the wonderful things about this pair of classes.
I have a patch pretty much ready (with tests and a doc update), but it causes concurrent/futures/thread.py to import multiprocessing. Were you trying to avoid that? |
|
Date |
User |
Action |
Args |
2010-11-16 19:36:14 | stutzbach | set | recipients:
+ stutzbach, bquinlan |
2010-11-16 19:36:14 | stutzbach | set | messageid: <1289936174.35.0.332227808259.issue10437@psf.upfronthosting.co.za> |
2010-11-16 19:36:12 | stutzbach | link | issue10437 messages |
2010-11-16 19:36:12 | stutzbach | create | |
|