Skip to content

Commit 6d9767f

Browse files
willingc1st1
authored andcommitted
edit async policy doc - second pass (GH-9235)
1 parent 5b7cbd6 commit 6d9767f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Doc/library/asyncio-policy.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ An event loop policy, a global per-process object, controls
1111
management of the event loop. Each event loop has a default
1212
policy, which can be changed and customized using the API.
1313

14-
A policy defines the notion of context and manages a
14+
A policy defines the notion of *context* and manages a
1515
separate event loop per context. The default policy
16-
defines context to be the current thread.
16+
defines *context* to be the current thread.
1717

1818
By using a custom event loop policy, the behavior of
1919
:func:`get_event_loop`, :func:`set_event_loop`, and
@@ -94,8 +94,8 @@ asyncio ships with the following built-in policies:
9494
The default asyncio policy. Uses :class:`SelectorEventLoop`
9595
on both Unix and Windows platforms.
9696

97-
There is no need to install the default policy manually; asyncio
98-
is configured to use it automatically.
97+
There is no need to install the default policy manually. asyncio
98+
is configured to use the default policy automatically.
9999

100100

101101
.. class:: WindowsProactorEventLoopPolicy
@@ -125,7 +125,7 @@ by default) and :class:`FastChildWatcher`.
125125
See also the :ref:`Subprocess and Threads <asyncio-subprocess-threads>`
126126
section.
127127

128-
The following two functions can be used to customize the watcher
128+
The following two functions can be used to customize the child process watcher
129129
implementation used by the asyncio event loop:
130130

131131
.. function:: get_child_watcher()
@@ -189,7 +189,7 @@ implementation used by the asyncio event loop:
189189
handling a big number of processes (*O(n)* each time a
190190
:py:data:`SIGCHLD` is received).
191191

192-
asyncio uses this implementation by default.
192+
asyncio uses this safe implementation by default.
193193

194194
.. class:: FastChildWatcher
195195

0 commit comments

Comments
 (0)