]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Link to correct class methods in asyncio primitives docs (GH-127270) (#127423)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 29 Nov 2024 16:26:42 +0000 (17:26 +0100)
committerGitHub <noreply@github.com>
Fri, 29 Nov 2024 16:26:42 +0000 (16:26 +0000)
Link to correct class methods in asyncio primitives docs (GH-127270)
(cherry picked from commit 15d6506d175780bb29e5fcde654e3860408aa93e)

Co-authored-by: Ollanta Cuba Gyllensten <ollantaster@gmail.com>
Doc/library/asyncio-sync.rst

index 3cf8e2737e85dcd9262205a6d2ef321afe08c397..77c2e97da11990ef0f0a8ae22d1008a042fa34bb 100644 (file)
@@ -259,8 +259,8 @@ Condition
 
       Note that a task *may* return from this call spuriously,
       which is why the caller should always re-check the state
-      and be prepared to :meth:`wait` again. For this reason, you may
-      prefer to use :meth:`wait_for` instead.
+      and be prepared to :meth:`~Condition.wait` again. For this reason, you may
+      prefer to use :meth:`~Condition.wait_for` instead.
 
    .. coroutinemethod:: wait_for(predicate)
 
@@ -268,7 +268,7 @@ Condition
 
       The predicate must be a callable which result will be
       interpreted as a boolean value.  The method will repeatedly
-      :meth:`wait` until the predicate evaluates to *true*. The final value is the
+      :meth:`~Condition.wait` until the predicate evaluates to *true*. The final value is the
       return value.
 
 
@@ -434,7 +434,7 @@ Barrier
    .. coroutinemethod:: abort()
 
       Put the barrier into a broken state.  This causes any active or future
-      calls to :meth:`wait` to fail with the :class:`BrokenBarrierError`.
+      calls to :meth:`~Barrier.wait` to fail with the :class:`BrokenBarrierError`.
       Use this for example if one of the tasks needs to abort, to avoid infinite
       waiting tasks.