From: Harmandeep Singh Date: Mon, 18 Mar 2019 01:53:07 +0000 (+0530) Subject: bpo-36195: Remove the ThreadPoolExecutor documentation mentioning the initializer... X-Git-Tag: v3.6.9rc1~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e601ef0fa384d149f6759fff3c18762a8c63851e;p=thirdparty%2FPython%2Fcpython.git bpo-36195: Remove the ThreadPoolExecutor documentation mentioning the initializer feature added in Python 3.7 (GH-12182) --- diff --git a/Doc/library/concurrent.futures.rst b/Doc/library/concurrent.futures.rst index 69dfd0f47c1c..319f757aa906 100644 --- a/Doc/library/concurrent.futures.rst +++ b/Doc/library/concurrent.futures.rst @@ -137,12 +137,6 @@ And:: An :class:`Executor` subclass that uses a pool of at most *max_workers* threads to execute calls asynchronously. - *initializer* is an optional callable that is called at the start of - each worker thread; *initargs* is a tuple of arguments passed to the - initializer. Should *initializer* raise an exception, all currently - pending jobs will raise a :exc:`~concurrent.futures.thread.BrokenThreadPool`, - as well any attempt to submit more jobs to the pool. - .. versionchanged:: 3.5 If *max_workers* is ``None`` or not given, it will default to the number of processors on the machine,