Skip to content

Commit f0cbc6c

Browse files
miss-islingtonkumaraditya303
authored andcommitted
fixup policy docs (GH-97618)
(cherry picked from commit 9a404b1) Co-authored-by: Kumar Aditya <[email protected]>
1 parent 68b7a6a commit f0cbc6c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Doc/library/asyncio-policy.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@
77
Policies
88
========
99

10-
An event loop policy is a global per-process object that controls
11-
the management of the event loop. Each event loop has a default
12-
policy, which can be changed and customized using the policy API.
10+
An event loop policy is a global object
11+
used to get and set the current :ref:`event loop <asyncio-event-loop>`,
12+
as well as create new event loops.
13+
The default policy can be :ref:`replaced <asyncio-policy-get-set>` with
14+
:ref:`built-in alternatives <asyncio-policy-builtin>`
15+
to use different event loop implementations,
16+
or substituted by a :ref:`custom policy <asyncio-custom-policies>`
17+
that can override these behaviors.
1318

1419
A policy defines the notion of *context* and manages a
1520
separate event loop per context. The default policy

0 commit comments

Comments
 (0)