summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorKumar Aditya <kumaraditya@python.org>2024-12-24 12:00:26 (GMT)
committerGitHub <noreply@github.com>2024-12-24 12:00:26 (GMT)
commita391d80f4bf5a3cf5aa95340ca848b9a0294778d (patch)
tree1d09810b45471e2aabafe01e8f9016bccdae3e99 /Doc/library
parent3f6a618e49b1c8c12a7bc0c26e846735e108dc97 (diff)
downloadcpython-a391d80f4bf5a3cf5aa95340ca848b9a0294778d.zip
cpython-a391d80f4bf5a3cf5aa95340ca848b9a0294778d.tar.gz
cpython-a391d80f4bf5a3cf5aa95340ca848b9a0294778d.tar.bz2
gh-127949: deprecate asyncio policy classes (#128216)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/asyncio-policy.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/Doc/library/asyncio-policy.rst b/Doc/library/asyncio-policy.rst
index 2d05c3a..ea7fe95 100644
--- a/Doc/library/asyncio-policy.rst
+++ b/Doc/library/asyncio-policy.rst
@@ -87,6 +87,10 @@ The abstract event loop policy base class is defined as follows:
This method should never return ``None``.
+ .. deprecated:: next
+ The :class:`AbstractEventLoopPolicy` class is deprecated and
+ will be removed in Python 3.16.
+
.. _asyncio-policy-builtin:
@@ -109,6 +113,10 @@ asyncio ships with the following built-in policies:
The :meth:`get_event_loop` method of the default asyncio policy now
raises a :exc:`RuntimeError` if there is no set event loop.
+ .. deprecated:: next
+ The :class:`DefaultEventLoopPolicy` class is deprecated and
+ will be removed in Python 3.16.
+
.. class:: WindowsSelectorEventLoopPolicy
@@ -117,6 +125,10 @@ asyncio ships with the following built-in policies:
.. availability:: Windows.
+ .. deprecated:: next
+ The :class:`WindowsSelectorEventLoopPolicy` class is deprecated and
+ will be removed in Python 3.16.
+
.. class:: WindowsProactorEventLoopPolicy
@@ -125,6 +137,10 @@ asyncio ships with the following built-in policies:
.. availability:: Windows.
+ .. deprecated:: next
+ The :class:`WindowsProactorEventLoopPolicy` class is deprecated and
+ will be removed in Python 3.16.
+
.. _asyncio-custom-policies: