@@ -691,10 +691,36 @@ Deprecated
691691 (Contributed by Serhiy Storchaka in :gh: `58032 `.)
692692
693693* :mod: `asyncio `:
694- :func: `!asyncio.iscoroutinefunction ` is deprecated
695- and will be removed in Python 3.16,
696- use :func: `inspect.iscoroutinefunction ` instead.
697- (Contributed by Jiahao Li and Kumar Aditya in :gh: `122875 `.)
694+
695+ * :func: `!asyncio.iscoroutinefunction ` is deprecated
696+ and will be removed in Python 3.16;
697+ use :func: `inspect.iscoroutinefunction ` instead.
698+ (Contributed by Jiahao Li and Kumar Aditya in :gh: `122875 `.)
699+
700+ * :mod: `asyncio ` policy system is deprecated and will be removed in Python 3.16.
701+ In particular, the following classes and functions are deprecated:
702+
703+ * :class: `asyncio.AbstractEventLoopPolicy `
704+ * :class: `asyncio.DefaultEventLoopPolicy `
705+ * :class: `asyncio.WindowsSelectorEventLoopPolicy `
706+ * :class: `asyncio.WindowsProactorEventLoopPolicy `
707+ * :func: `asyncio.get_event_loop_policy `
708+ * :func: `asyncio.set_event_loop_policy `
709+ * :func: `asyncio.set_event_loop `
710+
711+ Users should use :func: `asyncio.run ` or :class: `asyncio.Runner ` with
712+ *loop_factory * to use the desired event loop implementation.
713+
714+ For example, to use :class: `asyncio.SelectorEventLoop ` on Windows::
715+
716+ import asyncio
717+
718+ async def main():
719+ ...
720+
721+ asyncio.run(main(), loop_factory=asyncio.SelectorEventLoop)
722+
723+ (Contributed by Kumar Aditya in :gh: `127949 `.)
698724
699725* :mod: `builtins `:
700726 Passing a complex number as the *real * or *imag * argument in the
0 commit comments