Skip to content

Commit 0a8b2fc

Browse files
committed
Accept suggestions
1 parent 7de4242 commit 0a8b2fc

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

Doc/library/concurrent.futures.rst

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,18 @@ And::
173173
pending jobs will raise a :exc:`~concurrent.futures.thread.BrokenThreadPool`,
174174
as well as any attempt to submit more jobs to the pool.
175175

176+
*ctxkwargs* is an is a mapping of additional keyword arguments passed to
177+
:meth:`prepare_context`, allowing customization of the worker execution
178+
context.
179+
180+
.. classmethod:: prepare_context(initializer, initargs)
181+
182+
Setting up the necessary context for creating worker instances in a
183+
pool-based executor (for example, in a concurrent environment like
184+
threads or interpreters).
185+
186+
.. versionadded:: 3.14
187+
176188
.. versionchanged:: 3.5
177189
If *max_workers* is ``None`` or
178190
not given, it will default to the number of processors on the machine,
@@ -206,11 +218,6 @@ And::
206218
Added *ctxkwargs* to pass additional arguments to ``cls.prepare_context``
207219
class method.
208220

209-
.. classmethod:: prepare_context(initializer, initargs)
210-
Setting up the necessary context for creating worker instances in a pool-based executor (e.g., in a concurrent environment like threads or interpreters).
211-
212-
.. versionadded:: 3.14
213-
214221

215222
.. _threadpoolexecutor-example:
216223

0 commit comments

Comments
 (0)