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