Skip to content

Commit 842bc13

Browse files
Apply suggestions from code review
Co-authored-by: Stan Ulbrych <stan@python.org>
1 parent 9499c74 commit 842bc13

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

Doc/library/asyncio-eventloop.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1919,13 +1919,14 @@ By default asyncio is configured to use :class:`EventLoop`.
19191919

19201920
.. class:: BaseEventLoop
19211921

1922-
Abstract base class for asyncio-compliant event loops.
1923-
Inherits from :class:`AbstractEventLoop` directly.
1924-
1925-
Has many methods of ``AbstractEventLoop`` implemented, so end users
1926-
would have less methods to implement themselfs.
1927-
But, instead forces to implement some internal protected API methods.
1928-
See :ref:`writting_custom_event_loop` for more information.
1922+
A base class that partially implements :class:`AbstractEventLoop`
1923+
to simplify writing custom event loops.
1924+
1925+
It provides default implementations of many :class:`AbstractEventLoop`
1926+
methods, so subclasses have fewer methods to implement themselves.
1927+
In return, a subclass is expected to implement a number of internal,
1928+
protected methods.
1929+
See :ref:`writing_custom_event_loop` for more information.
19291930

19301931

19311932
Examples

Doc/library/asyncio-extending.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ classes. Asyncio has helpers that could be used to simplify this task.
1212

1313
Third-parties should reuse existing asyncio code with caution,
1414
a new Python version is free to break backward compatibility
15-
in *internal* part of API.
15+
in the *internal* part of the API.
1616

1717

18-
.. _writting_custom_event_loop:
18+
.. _writing_custom_event_loop:
1919

2020
Writing a Custom Event Loop
2121
===========================
2222

2323
:class:`asyncio.AbstractEventLoop` declares very many methods.
2424
See :ref:`asyncio-event-loop-methods` for the full list.
25-
Implementing all them from scratch is a tedious job.
25+
Implementing them all from scratch is a tedious job.
2626

2727
A loop can get many common methods implementation for free by inheriting from
2828
:class:`asyncio.BaseEventLoop`.

0 commit comments

Comments
 (0)