@@ -48,10 +48,10 @@ an event loop:
4848 running event loop.
4949
5050 If there is no running event loop set, the function will return
51- the result of the ``get_event_loop_policy().get_event_loop() `` call.
51+ the loop set by :func: `set_event_loop `, or raise a :exc: `RuntimeError `
52+ if no loop has been set.
5253
53- Because this function has rather complex behavior (especially
54- when custom event loop policies are in use), using the
54+ Because this function has rather complex behavior, using the
5555 :func: `get_running_loop ` function is preferred to :func: `get_event_loop `
5656 in coroutines and callbacks.
5757
@@ -62,13 +62,6 @@ an event loop:
6262 .. versionchanged :: 3.14
6363 Raises a :exc: `RuntimeError ` if there is no current event loop.
6464
65- .. note ::
66-
67- The :mod: `!asyncio ` policy system is deprecated and will be removed
68- in Python 3.16; from there on, this function will return the current
69- running event loop if present else it will return the
70- loop set by :func: `set_event_loop `.
71-
7265.. function :: set_event_loop(loop)
7366
7467 Set *loop * as the current event loop for the current OS thread.
@@ -77,10 +70,6 @@ an event loop:
7770
7871 Create and return a new event loop object.
7972
80- Note that the behaviour of :func: `get_event_loop `, :func: `set_event_loop `,
81- and :func: `new_event_loop ` functions can be altered by
82- :ref: `setting a custom event loop policy <asyncio-policies >`.
83-
8473
8574.. rubric :: Contents
8675
0 commit comments