summaryrefslogtreecommitdiffstats
path: root/Doc/library/concurrent.futures.rst
diff options
context:
space:
mode:
authorBrian Quinlan <brian@sweetapp.com>2014-05-17 20:51:10 (GMT)
committerBrian Quinlan <brian@sweetapp.com>2014-05-17 20:51:10 (GMT)
commit20efceb75790f2a40fad449fd92a6b3d8fe40c8b (patch)
treef40a8391cb82646bfc6a26ae857a461732ac6dfa /Doc/library/concurrent.futures.rst
parent120e8edfb8b0e477dbe351c14e18803301df48ac (diff)
downloadcpython-20efceb75790f2a40fad449fd92a6b3d8fe40c8b.zip
cpython-20efceb75790f2a40fad449fd92a6b3d8fe40c8b.tar.gz
cpython-20efceb75790f2a40fad449fd92a6b3d8fe40c8b.tar.bz2
Issue #21362: concurrent.futures does not validate that max_workers is proper
Diffstat (limited to 'Doc/library/concurrent.futures.rst')
-rw-r--r--Doc/library/concurrent.futures.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/concurrent.futures.rst b/Doc/library/concurrent.futures.rst
index 0495737..08c926a 100644
--- a/Doc/library/concurrent.futures.rst
+++ b/Doc/library/concurrent.futures.rst
@@ -175,6 +175,8 @@ to a :class:`ProcessPoolExecutor` will result in deadlock.
An :class:`Executor` subclass that executes calls asynchronously using a pool
of at most *max_workers* processes. If *max_workers* is ``None`` or not
given, it will default to the number of processors on the machine.
+ If *max_workers* is lower or equal to ``0``, then a :exc:`ValueError`
+ will be raised.
.. versionchanged:: 3.3
When one of the worker processes terminates abruptly, a