mirror of https://github.com/python/cpython
Fix documentation (GH-13721)
Based on the source code 4a686504eb/Lib/multiprocessing/pool.py (L755)
AsyncResult.successful() raises a ValueError, not an AssertionError.
This commit is contained in:
parent
6d64a8f49e
commit
d4cf099dff
|
@ -2279,6 +2279,10 @@ with the :class:`Pool` class.
|
|||
Return whether the call completed without raising an exception. Will
|
||||
raise :exc:`AssertionError` if the result is not ready.
|
||||
|
||||
.. versionchanged:: 3.7
|
||||
If the result is not ready, :exc:`ValueError` is raised instead of
|
||||
:exc:`AssertionError`.
|
||||
|
||||
The following example demonstrates the use of a pool::
|
||||
|
||||
from multiprocessing import Pool
|
||||
|
|
Loading…
Reference in New Issue