diff options
author | Yury Selivanov <yury@magic.io> | 2016-10-21 21:40:42 (GMT) |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2016-10-21 21:40:42 (GMT) |
commit | e8a6045fea844f561021c2fd8ffd965749026699 (patch) | |
tree | 43f62ad5e679a2128600e9084a48837ca727ff12 /Lib/asyncio | |
parent | 9f91e858ce64c93936c904ee522b3fcaefd159d4 (diff) | |
download | cpython-e8a6045fea844f561021c2fd8ffd965749026699.zip cpython-e8a6045fea844f561021c2fd8ffd965749026699.tar.gz cpython-e8a6045fea844f561021c2fd8ffd965749026699.tar.bz2 |
Issue #26796: Don't configure the number of workers for default threadpool executor.
Initial patch by Hans Lawrenz.
Diffstat (limited to 'Lib/asyncio')
-rw-r--r-- | Lib/asyncio/base_events.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index 648b9b9..b3e318e 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -41,9 +41,6 @@ from .log import logger __all__ = ['BaseEventLoop'] -# Argument for default thread pool executor creation. -_MAX_WORKERS = 5 - # Minimum number of _scheduled timer handles before cleanup of # cancelled handles is performed. _MIN_SCHEDULED_TIMER_HANDLES = 100 @@ -616,7 +613,7 @@ class BaseEventLoop(events.AbstractEventLoop): if executor is None: executor = self._default_executor if executor is None: - executor = concurrent.futures.ThreadPoolExecutor(_MAX_WORKERS) + executor = concurrent.futures.ThreadPoolExecutor() self._default_executor = executor return futures.wrap_future(executor.submit(func, *args), loop=self) |