mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Note that maxtasksperchild is new in 3.2.
This commit is contained in:
parent
feedda2bab
commit
17ef0d51d7
1 changed files with 12 additions and 11 deletions
|
|
@ -1559,6 +1559,7 @@ with the :class:`Pool` class.
|
|||
*initializer* is not ``None`` then each worker process will call
|
||||
``initializer(*initargs)`` when it starts.
|
||||
|
||||
.. versionadded:: 3.2
|
||||
*maxtasksperchild* is the number of tasks a worker process can complete
|
||||
before it will exit and be replaced with a fresh worker process, to enable
|
||||
unused resources to be freed. The default *maxtasksperchild* is None, which
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue