@@ -169,12 +169,15 @@ An event loop policy must implement the following interface: |
|
|
169 |
169 |
Get the event loop for the current context. |
170 |
170 |
|
171 |
171 |
Returns an event loop object implementing the :class:`AbstractEventLoop` |
172 |
|
- interface. |
|
172 |
+ interface. In case called from coroutine, it returns the currently |
|
173 |
+ running event loop. |
173 |
174 |
|
174 |
175 |
Raises an exception in case no event loop has been set for the current |
175 |
176 |
context and the current policy does not specify to create one. It must |
176 |
177 |
never return ``None``. |
177 |
178 |
|
|
179 |
+ .. versionchanged:: 3.6 |
|
180 |
+ |
178 |
181 |
.. method:: set_event_loop(loop) |
179 |
182 |
|
180 |
183 |
Set the event loop for the current context to *loop*. |