mirror of
https://github.com/python/cpython.git
synced 2026-02-05 09:25:35 +00:00
fixup policy docs (GH-97618)
(cherry picked from commit 9a404b173e)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
This commit is contained in:
parent
68b7a6ab99
commit
f0cbc6c18e
1 changed files with 8 additions and 3 deletions
|
|
@ -7,9 +7,14 @@
|
|||
Policies
|
||||
========
|
||||
|
||||
An event loop policy is a global per-process object that controls
|
||||
the management of the event loop. Each event loop has a default
|
||||
policy, which can be changed and customized using the policy API.
|
||||
An event loop policy is a global object
|
||||
used to get and set the current :ref:`event loop <asyncio-event-loop>`,
|
||||
as well as create new event loops.
|
||||
The default policy can be :ref:`replaced <asyncio-policy-get-set>` with
|
||||
:ref:`built-in alternatives <asyncio-policy-builtin>`
|
||||
to use different event loop implementations,
|
||||
or substituted by a :ref:`custom policy <asyncio-custom-policies>`
|
||||
that can override these behaviors.
|
||||
|
||||
A policy defines the notion of *context* and manages a
|
||||
separate event loop per context. The default policy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue