Message263669
In issue 21527 <http://bugs.python.org/issue21527> the concurrent.futures.ThreadPoolExecutor was changed to have a default value for max_workers. When asyncio.base_events.BaseEventLoop.run_in_executor creates a default ThreadPoolExecutor it specifies a value of 5 for max_workers, presumably because at the time it was written ThreadPoolExecutor didn't have a default for max_workers. This is confusing because on reading the documentation for ThreadPoolExecutor one might assume that the default specified there is what will be used if a default executor isn't supplied via BaseEventLoop.set_default_executor.
I propose that BaseEventLoop.run_in_executor be changed to not supply a default for max_workers. If this isn't acceptable, a note ought to be put in the run_in_executor documentation. |
|
Date |
User |
Action |
Args |
2016-04-18 14:43:59 | Hans Lawrenz | set | recipients:
+ Hans Lawrenz, gvanrossum, vstinner, yselivanov |
2016-04-18 14:43:59 | Hans Lawrenz | set | messageid: <1460990639.79.0.271352232569.issue26796@psf.upfronthosting.co.za> |
2016-04-18 14:43:59 | Hans Lawrenz | link | issue26796 messages |
2016-04-18 14:43:59 | Hans Lawrenz | create | |
|