MCPcopy Index your code
hub / github.com/python/cpython / stop

Method stop

Lib/test/test_asyncio/test_streams.py:654–658  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

652 return addr
653
654 def stop(self):
655 if self.server is not None:
656 self.server.close()
657 self.loop.run_until_complete(self.server.wait_closed())
658 self.server = None
659
660 async def client(addr):
661 reader, writer = await asyncio.open_connection(*addr)

Callers 4

test_start_serverMethod · 0.95
test_start_tlsMethod · 0.95
innerMethod · 0.45

Calls 3

closeMethod · 0.45
run_until_completeMethod · 0.45
wait_closedMethod · 0.45

Tested by

no test coverage detected