]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Simple Documentation fix: Missing link to return type class. (GH-21291)
authorVolker-Weissmann <39418860+Volker-Weissmann@users.noreply.github.com>
Mon, 20 Jul 2020 11:26:32 +0000 (13:26 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2020 11:26:32 +0000 (04:26 -0700)
Just a simple documentation fix: apply_async and map_async return a "multiprocessing.pool.AsyncResult Object", not a "result object".

Doc/library/multiprocessing.rst

index 08258a65a89dc35fd783df6bf343ed5e9ec029c9..69d65236503864523f00fce10b23482ad4e1cf26 100644 (file)
@@ -2173,7 +2173,8 @@ with the :class:`Pool` class.
 
    .. method:: apply_async(func[, args[, kwds[, callback[, error_callback]]]])
 
-      A variant of the :meth:`apply` method which returns a result object.
+      A variant of the :meth:`apply` method which returns a
+      :class:`~multiprocessing.pool.AsyncResult` object.
 
       If *callback* is specified then it should be a callable which accepts a
       single argument.  When the result becomes ready *callback* is applied to
@@ -2203,7 +2204,8 @@ with the :class:`Pool` class.
 
    .. method:: map_async(func, iterable[, chunksize[, callback[, error_callback]]])
 
-      A variant of the :meth:`.map` method which returns a result object.
+      A variant of the :meth:`.map` method which returns a
+      :class:`~multiprocessing.pool.AsyncResult` object.
 
       If *callback* is specified then it should be a callable which accepts a
       single argument.  When the result becomes ready *callback* is applied to