BPO-42703: Fix incorrect documentation links for asyncio.Event (GH-23881)

This commit is contained in:
Matt Fowler 2020-12-23 05:44:52 -05:00 committed by GitHub
parent 6d9ec8bbfa
commit d90ff37681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -101,8 +101,8 @@ Event
that some event has happened. that some event has happened.
An Event object manages an internal flag that can be set to *true* An Event object manages an internal flag that can be set to *true*
with the :meth:`set` method and reset to *false* with the with the :meth:`~Event.set` method and reset to *false* with the
:meth:`clear` method. The :meth:`wait` method blocks until the :meth:`clear` method. The :meth:`~Event.wait` method blocks until the
flag is set to *true*. The flag is set to *false* initially. flag is set to *true*. The flag is set to *false* initially.
.. _asyncio_example_sync_event: .. _asyncio_example_sync_event:
@ -135,7 +135,7 @@ Event
Wait until the event is set. Wait until the event is set.
If the event is set, return ``True`` immediately. If the event is set, return ``True`` immediately.
Otherwise block until another task calls :meth:`set`. Otherwise block until another task calls :meth:`~Event.set`.
.. method:: set() .. method:: set()
@ -148,8 +148,8 @@ Event
Clear (unset) the event. Clear (unset) the event.
Tasks awaiting on :meth:`wait` will now block until the Tasks awaiting on :meth:`~Event.wait` will now block until the
:meth:`set` method is called again. :meth:`~Event.set` method is called again.
.. method:: is_set() .. method:: is_set()