File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
19311932Examples
Original file line number Diff line number Diff 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
2020Writing a Custom Event Loop
2121===========================
2222
2323:class: `asyncio.AbstractEventLoop ` declares very many methods.
2424See :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
2727A loop can get many common methods implementation for free by inheriting from
2828:class: `asyncio.BaseEventLoop `.
You can’t perform that action at this time.
0 commit comments