Skip to content

Commit 1e225bd

Browse files
committed
Add class method prepare_context
1 parent b47a25d commit 1e225bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/library/concurrent.futures.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,11 @@ And::
206206
Added *ctxkwargs* to pass additional arguments to ``cls.prepare_context``
207207
class method.
208208

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+
209214

210215
.. _threadpoolexecutor-example:
211216

0 commit comments

Comments
 (0)