diff options
author | Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <srinivasreddy@users.noreply.github.com> | 2017-12-30 15:09:32 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2017-12-30 15:09:32 (GMT) |
commit | 1634fc289a13b0e1fdad4694d5cae7dab55f7186 (patch) | |
tree | 4973b8e55ffe557c712763c0be5a70946b9fd211 /Doc/library/asyncio-eventloop.rst | |
parent | fc35932afdad91f87b49a4854d4333267494c6c1 (diff) | |
download | cpython-1634fc289a13b0e1fdad4694d5cae7dab55f7186.zip cpython-1634fc289a13b0e1fdad4694d5cae7dab55f7186.tar.gz cpython-1634fc289a13b0e1fdad4694d5cae7dab55f7186.tar.bz2 |
bpo-32418: Add get_loop() method on Server, AbstractServer classes (#4997)
* Add abstract get_loop() method to Server, AbstractServer classes.
* Add test cases for get_loop() method in Server, AbstractServer classes
* Add documentation for get_loop() method
Diffstat (limited to 'Doc/library/asyncio-eventloop.rst')
-rw-r--r-- | Doc/library/asyncio-eventloop.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index 33b86d6..4fbbcd8 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -913,6 +913,12 @@ Server The server is closed asynchronously, use the :meth:`wait_closed` coroutine to wait until the server is closed. + .. method:: get_loop() + + Gives the event loop associated with the server object. + + .. versionadded:: 3.7 + .. coroutinemethod:: wait_closed() Wait until the :meth:`close` method completes. |