summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorKumar Aditya <kumaraditya@python.org>2024-12-26 14:32:23 (GMT)
committerGitHub <noreply@github.com>2024-12-26 14:32:23 (GMT)
commit3eb746a7b9122c7c3cfc3fbd41d9d079d8b02845 (patch)
tree8c48724e887e1a846dd591c210ae5087dfe19c36 /Doc/library
parent5c814c83cdd3dc42bd9682106ffb7ade7ce6b5b3 (diff)
downloadcpython-3eb746a7b9122c7c3cfc3fbd41d9d079d8b02845.zip
cpython-3eb746a7b9122c7c3cfc3fbd41d9d079d8b02845.tar.gz
cpython-3eb746a7b9122c7c3cfc3fbd41d9d079d8b02845.tar.bz2
gh-127949: add docs for asyncio policy deprecation (#128269)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/asyncio-policy.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/asyncio-policy.rst b/Doc/library/asyncio-policy.rst
index ea7fe95..9f86234 100644
--- a/Doc/library/asyncio-policy.rst
+++ b/Doc/library/asyncio-policy.rst
@@ -7,6 +7,14 @@
Policies
========
+.. warning::
+
+ Policies are deprecated and will be removed in Python 3.16.
+ Users are encouraged to use the :func:`asyncio.run` function
+ or the :class:`asyncio.Runner` with *loop_factory* to use
+ the desired loop implementation.
+
+
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.