Skip to content

Commit

Permalink
[3.13] Link to correct class methods in asyncio primitives docs (GH-1…
Browse files Browse the repository at this point in the history
…27270) (#127423)

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

Co-authored-by: Ollanta Cuba Gyllensten <[email protected]>
  • Loading branch information
miss-islington and ollanta authored Nov 29, 2024
1 parent c4a359d commit ee57221
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Doc/library/asyncio-sync.rst
Original file line number Diff line number Diff line change
Expand Up @@ -259,16 +259,16 @@ 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)

Wait until a predicate becomes *true*.

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.


Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit ee57221

Please sign in to comment.