mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Issue #25593: Change semantics of EventLoop.stop().
This commit is contained in:
parent
01a65af4a1
commit
41f69f4cc7
6 changed files with 87 additions and 28 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue