diff options
Diffstat (limited to 'Doc/library/asyncio-task.rst')
| -rw-r--r-- | Doc/library/asyncio-task.rst | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index d85dddfa02..71dbe06c89 100644 --- a/Doc/library/asyncio-task.rst +++ b/Doc/library/asyncio-task.rst @@ -306,6 +306,12 @@ Future        If the future is already done when this method is called, raises        :exc:`InvalidStateError`. +   .. method:: get_loop() + +      Return the event loop the future object is bound to. + +      .. versionadded:: 3.7 +  Example: Future with run_until_complete()  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  | 
