bpo-30935: update get_event_loop docs (GH-2731) · python/cpython@e55de2d (original) (raw)

Original file line number Diff line number Diff line change
@@ -176,12 +176,15 @@ An event loop policy must implement the following interface:
176 176 Get the event loop for the current context.
177 177
178 178 Returns an event loop object implementing the :class:`AbstractEventLoop`
179 - interface.
179 + interface. In case called from coroutine, it returns the currently
180 + running event loop.
180 181
181 182 Raises an exception in case no event loop has been set for the current
182 183 context and the current policy does not specify to create one. It must
183 184 never return ``None``.
184 185
186 + .. versionchanged:: 3.6
187 +
185 188 .. method:: set_event_loop(loop)
186 189
187 190 Set the event loop for the current context to *loop*.