mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
bpo-30935: update get_event_loop docs (GH-2731)
This commit is contained in:
parent
4fadf0c639
commit
e55de2d77f
2 changed files with 5 additions and 2 deletions
|
@ -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*.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue