aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Doc/library/asyncio-eventloops.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/asyncio-eventloops.rst')
-rw-r--r--Doc/library/asyncio-eventloops.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/asyncio-eventloops.rst b/Doc/library/asyncio-eventloops.rst
index 2097260e219..3051fde5b93 100644
--- a/Doc/library/asyncio-eventloops.rst
+++ b/Doc/library/asyncio-eventloops.rst
@@ -25,6 +25,13 @@ the execution of the process.
Equivalent to calling ``get_event_loop_policy().new_event_loop()``.
+.. function:: get_running_loop()
+
+ Return the running event loop in the current OS thread. If there
+ is no running event loop a :exc:`RuntimeError` is raised.
+
+ .. versionadded:: 3.7
+
.. _asyncio-event-loops: