summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorOllanta Cuba Gyllensten <ollantaster@gmail.com>2024-11-29 16:20:40 (GMT)
committerGitHub <noreply@github.com>2024-11-29 16:20:40 (GMT)
commit15d6506d175780bb29e5fcde654e3860408aa93e (patch)
treeb8f0bdd67737c23f07232c2b4e9952f20974b621 /Doc/library
parent45c5cba318a19dda3ee6f9fc84781cc7a2fbde80 (diff)
downloadcpython-15d6506d175780bb29e5fcde654e3860408aa93e.zip
cpython-15d6506d175780bb29e5fcde654e3860408aa93e.tar.gz
cpython-15d6506d175780bb29e5fcde654e3860408aa93e.tar.bz2
Link to correct class methods in asyncio primitives docs (#127270)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/asyncio-sync.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst
index 3cf8e27..77c2e97 100644
--- a/Doc/library/asyncio-sync.rst
+++ b/Doc/library/asyncio-sync.rst
@@ -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.