Skip to content

Commit 25d74de

Browse files
committed
fix cross-refs
1 parent 851b2b4 commit 25d74de

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/glossary.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ The one exception is :func:`trio.open_nursery` and :func:`anyio.create_task_grou
103103

104104
asyncio does not place any guarantees on if or when asyncio functions will
105105
checkpoint. This means that enabling and adhering to :ref:`ASYNC91x <ASYNC910>`
106-
will still not guarantee checkpoints on asyncio.
107-
108-
For anyio it will depend on the current backend.
106+
will still not guarantee checkpoints on asyncio (even if used via anyio).
109107

110108
When using Trio (or an AnyIO library that people might use on Trio), it can be
111109
very helpful to ensure that your own code adheres to the same guarantees as
@@ -123,7 +121,7 @@ To insert a checkpoint with no other side effects, you can use
123121

124122
Schedule Point
125123
--------------
126-
A schedule point is half of a full `checkpoint`, which allows the async backend to switch the running task, but doesn't check for cancellation (the other half is a `cancel_point`).
124+
A schedule point is half of a full :ref:`checkpoint`, which allows the async backend to switch the running task, but doesn't check for cancellation (the other half is a :ref:`cancel_point`).
127125
While you are unlikely to need one, they are available as :func:`trio.lowlevel.cancel_shielded_checkpoint`/:func:`anyio.lowlevel.cancel_shielded_checkpoint`, and equivalent to
128126

129127
.. code-block:: python
@@ -143,7 +141,7 @@ asyncio does not have any direct equivalents due to their cancellation model bei
143141

144142
Cancel Point
145143
------------
146-
A schedule point is half of a full `checkpoint`, which will raise :ref:`cancelled` if the enclosing cancel scope has been cancelled, but does not allow the scheduler to switch to a different task (the other half is a `schedule_point`).
144+
A schedule point is half of a full :ref:`checkpoint`, which will raise :ref:`cancelled` if the enclosing cancel scope has been cancelled, but does not allow the scheduler to switch to a different task (the other half is a :ref:`schedule_point`).
147145
While you are unlikely to need one, they are available as :func:`trio.lowlevel.checkpoint_if_cancelled`/:func:`anyio.lowlevel.checkpoint_if_cancelled`.
148146
Users of asyncio might want to use :meth:`asyncio.Task.cancelled`.
149147

0 commit comments

Comments
 (0)