diff options
author | Kumar Aditya <kumaraditya@python.org> | 2024-12-26 14:32:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-26 14:32:23 (GMT) |
commit | 3eb746a7b9122c7c3cfc3fbd41d9d079d8b02845 (patch) | |
tree | 8c48724e887e1a846dd591c210ae5087dfe19c36 /Doc/library | |
parent | 5c814c83cdd3dc42bd9682106ffb7ade7ce6b5b3 (diff) | |
download | cpython-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.rst | 8 |
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. |