Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2997fa4

Browse files
MariattafunkyHat
authored andcommitted
[3.6] Fix typos in concurrent.Futures documentation (GH-10920) (GH-10958)
Add a missing word `as` in `as well as an`. Linkify `threading.Thread`.. (cherry picked from commit 40a61da) Co-authored-by: Matt Wheeler <[email protected]>
1 parent 3a9b334 commit 2997fa4

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Doc/library/concurrent.futures.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ And::
137137
An :class:`Executor` subclass that uses a pool of at most *max_workers*
138138
threads to execute calls asynchronously.
139139

140+
*initializer* is an optional callable that is called at the start of
141+
each worker thread; *initargs* is a tuple of arguments passed to the
142+
initializer. Should *initializer* raise an exception, all currently
143+
pending jobs will raise a :exc:`~concurrent.futures.thread.BrokenThreadPool`,
144+
as well any attempt to submit more jobs to the pool.
145+
140146
.. versionchanged:: 3.5
141147
If *max_workers* is ``None`` or
142148
not given, it will default to the number of processors on the machine,
@@ -147,7 +153,7 @@ And::
147153

148154
.. versionadded:: 3.6
149155
The *thread_name_prefix* argument was added to allow users to
150-
control the threading.Thread names for worker threads created by
156+
control the :class:`threading.Thread` names for worker threads created by
151157
the pool for easier debugging.
152158

153159
.. _threadpoolexecutor-example:

0 commit comments

Comments
 (0)