summaryrefslogtreecommitdiffstats
path: root/Doc/library/multiprocessing.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-11 21:11:28 (GMT)
committerGitHub <noreply@github.com>2023-10-11 21:11:28 (GMT)
commitcae968ba1708ce23760974e850a0fceee856d926 (patch)
tree46546aec5d6595d8e4222d4cad03aa243621b0cc /Doc/library/multiprocessing.rst
parente6c53dd08535076fc60e9295bf46a2b7e615e2f3 (diff)
downloadcpython-cae968ba1708ce23760974e850a0fceee856d926.zip
cpython-cae968ba1708ce23760974e850a0fceee856d926.tar.gz
cpython-cae968ba1708ce23760974e850a0fceee856d926.tar.bz2
[3.12] gh-110631: Fix reST indentation in `Doc/library` (GH-110685) (#110736)
gh-110631: Fix reST indentation in `Doc/library` (GH-110685) Fix wrong indentation in the Doc/library dir. (cherry picked from commit bb7923f556537a463c403dc1097726d8a8e1a6f2) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Diffstat (limited to 'Doc/library/multiprocessing.rst')
-rw-r--r--Doc/library/multiprocessing.rst26
1 files changed, 13 insertions, 13 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index 2f0f1f8..773fca4 100644
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -2782,20 +2782,20 @@ worker threads rather than worker processes.
Unlike :class:`Pool`, *maxtasksperchild* and *context* cannot be provided.
- .. note::
+ .. note::
- A :class:`ThreadPool` shares the same interface as :class:`Pool`, which
- is designed around a pool of processes and predates the introduction of
- the :class:`concurrent.futures` module. As such, it inherits some
- operations that don't make sense for a pool backed by threads, and it
- has its own type for representing the status of asynchronous jobs,
- :class:`AsyncResult`, that is not understood by any other libraries.
-
- Users should generally prefer to use
- :class:`concurrent.futures.ThreadPoolExecutor`, which has a simpler
- interface that was designed around threads from the start, and which
- returns :class:`concurrent.futures.Future` instances that are
- compatible with many other libraries, including :mod:`asyncio`.
+ A :class:`ThreadPool` shares the same interface as :class:`Pool`, which
+ is designed around a pool of processes and predates the introduction of
+ the :class:`concurrent.futures` module. As such, it inherits some
+ operations that don't make sense for a pool backed by threads, and it
+ has its own type for representing the status of asynchronous jobs,
+ :class:`AsyncResult`, that is not understood by any other libraries.
+
+ Users should generally prefer to use
+ :class:`concurrent.futures.ThreadPoolExecutor`, which has a simpler
+ interface that was designed around threads from the start, and which
+ returns :class:`concurrent.futures.Future` instances that are
+ compatible with many other libraries, including :mod:`asyncio`.
.. _multiprocessing-programming: