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 /Lib/asyncio/events.py | |
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 'Lib/asyncio/events.py')
-rw-r--r-- | Lib/asyncio/events.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py index 9496d5c..731a0c5 100644 --- a/Lib/asyncio/events.py +++ b/Lib/asyncio/events.py @@ -155,6 +155,10 @@ class AbstractServer: """Coroutine to wait until service is closed.""" return NotImplemented + def get_loop(self): + """ Get the event loop the Server object is attached to.""" + return NotImplemented + class AbstractEventLoop: """Abstract event loop.""" |