@@ -1559,20 +1559,21 @@ with the :class:`Pool` class.
15591559 *initializer * is not ``None `` then each worker process will call
15601560 ``initializer(*initargs) `` when it starts.
15611561
1562- *maxtasksperchild * is the number of tasks a worker process can complete
1563- before it will exit and be replaced with a fresh worker process, to enable
1564- unused resources to be freed. The default *maxtasksperchild * is None, which
1565- means worker processes will live as long as the pool.
1562+ .. versionadded :: 3.2
1563+ *maxtasksperchild * is the number of tasks a worker process can complete
1564+ before it will exit and be replaced with a fresh worker process, to enable
1565+ unused resources to be freed. The default *maxtasksperchild * is None, which
1566+ means worker processes will live as long as the pool.
15661567
15671568 .. note ::
15681569
1569- Worker processes within a :class: `Pool ` typically live for the complete
1570- duration of the Pool's work queue. A frequent pattern found in other
1571- systems (such as Apache, mod_wsgi, etc) to free resources held by
1572- workers is to allow a worker within a pool to complete only a set
1573- amount of work before being exiting, being cleaned up and a new
1574- process spawned to replace the old one. The *maxtasksperchild *
1575- argument to the :class: `Pool ` exposes this ability to the end user.
1570+ Worker processes within a :class: `Pool ` typically live for the complete
1571+ duration of the Pool's work queue. A frequent pattern found in other
1572+ systems (such as Apache, mod_wsgi, etc) to free resources held by
1573+ workers is to allow a worker within a pool to complete only a set
1574+ amount of work before being exiting, being cleaned up and a new
1575+ process spawned to replace the old one. The *maxtasksperchild *
1576+ argument to the :class: `Pool ` exposes this ability to the end user.
15761577
15771578 .. method :: apply(func[, args[, kwds]])
15781579
0 commit comments