summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMandeep Singh <daxlab@users.noreply.github.com>2018-05-29 18:37:08 (GMT)
committerYury Selivanov <yury@magic.io>2018-05-29 18:37:08 (GMT)
commite55de2d77f10d524be0b426e587fbc820f76de71 (patch)
treefdbda59f8fe947e47071090ada9bc8c736b19c27 /Doc/library
parent4fadf0c639476fa50a40ec6f119f98c01e56ad95 (diff)
downloadcpython-e55de2d77f10d524be0b426e587fbc820f76de71.zip
cpython-e55de2d77f10d524be0b426e587fbc820f76de71.tar.gz
cpython-e55de2d77f10d524be0b426e587fbc820f76de71.tar.bz2
bpo-30935: update get_event_loop docs (GH-2731)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/asyncio-eventloops.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/asyncio-eventloops.rst b/Doc/library/asyncio-eventloops.rst
index 3051fde..7f6e953 100644
--- a/Doc/library/asyncio-eventloops.rst
+++ b/Doc/library/asyncio-eventloops.rst
@@ -176,12 +176,15 @@ An event loop policy must implement the following interface:
Get the event loop for the current context.
Returns an event loop object implementing the :class:`AbstractEventLoop`
- interface.
+ interface. In case called from coroutine, it returns the currently
+ running event loop.
Raises an exception in case no event loop has been set for the current
context and the current policy does not specify to create one. It must
never return ``None``.
+ .. versionchanged:: 3.6
+
.. method:: set_event_loop(loop)
Set the event loop for the current context to *loop*.