File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed 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 *.
Original file line number Diff line number Diff line change @@ -819,7 +819,7 @@ Notable changes in the :mod:`asyncio` module since Python 3.5.0
819
819
(all backported to 3.5.x due to the provisional status):
820
820
821
821
* The :func: `~asyncio.get_event_loop ` function has been changed to
822
- always return the currently running loop when called from couroutines
822
+ always return the currently running loop when called from coroutines
823
823
and callbacks.
824
824
(Contributed by Yury Selivanov in :issue: `28613 `.)
825
825
You can’t perform that action at this time.
0 commit comments