[3.13] Link to correct class methods in asyncio primitives docs (GH-127270) (#127423)

Link to correct class methods in asyncio primitives docs (GH-127270)
(cherry picked from commit 15d6506d17)

Co-authored-by: Ollanta Cuba Gyllensten <ollantaster@gmail.com>
This commit is contained in:
Miss Islington (bot) 2024-11-29 17:26:42 +01:00 committed by GitHub
parent c4a359dc42
commit ee57221872
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -259,8 +259,8 @@ Condition
Note that a task *may* return from this call spuriously, Note that a task *may* return from this call spuriously,
which is why the caller should always re-check the state which is why the caller should always re-check the state
and be prepared to :meth:`wait` again. For this reason, you may and be prepared to :meth:`~Condition.wait` again. For this reason, you may
prefer to use :meth:`wait_for` instead. prefer to use :meth:`~Condition.wait_for` instead.
.. coroutinemethod:: wait_for(predicate) .. coroutinemethod:: wait_for(predicate)
@ -268,7 +268,7 @@ Condition
The predicate must be a callable which result will be The predicate must be a callable which result will be
interpreted as a boolean value. The method will repeatedly 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. return value.
@ -434,7 +434,7 @@ Barrier
.. coroutinemethod:: abort() .. coroutinemethod:: abort()
Put the barrier into a broken state. This causes any active or future 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 Use this for example if one of the tasks needs to abort, to avoid infinite
waiting tasks. waiting tasks.