Issue #25593: Change semantics of EventLoop.stop().

This commit is contained in:
Guido van Rossum 2015-11-19 13:28:47 -08:00
parent 01a65af4a1
commit 41f69f4cc7
6 changed files with 87 additions and 28 deletions

View file

@ -494,7 +494,7 @@ data and wait until the connection is closed::
def connection_lost(self, exc):
print('The server closed the connection')
print('Stop the event lop')
print('Stop the event loop')
self.loop.stop()
loop = asyncio.get_event_loop()