summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorKumar Aditya <kumaraditya@python.org>2024-12-24 13:54:28 (GMT)
committerGitHub <noreply@github.com>2024-12-24 13:54:28 (GMT)
commit9fce90682553e2cfe93e98e2ae5948bf9c7c4456 (patch)
tree68349cd7bec642cadc1bb7436d1f0c54ccb91366 /Doc/library
parent3ddd70ceaaf67b111ee4251817e150396d6d10a9 (diff)
downloadcpython-9fce90682553e2cfe93e98e2ae5948bf9c7c4456.zip
cpython-9fce90682553e2cfe93e98e2ae5948bf9c7c4456.tar.gz
cpython-9fce90682553e2cfe93e98e2ae5948bf9c7c4456.tar.bz2
gh-127949: deprecate `asyncio.set_event_loop` (#128218)
Deprecate `asyncio.set_event_loop` to be removed in Python 3.16.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/asyncio-eventloop.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
index 9f1aec1..29f8431 100644
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -66,6 +66,10 @@ an event loop:
Set *loop* as the current event loop for the current OS thread.
+ .. deprecated:: next
+ The :func:`set_event_loop` function is deprecated and will be removed
+ in Python 3.16.
+
.. function:: new_event_loop()
Create and return a new event loop object.