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

Method start

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

Source from the content-addressed store, hash-verified

632 await client_writer.wait_closed()
633
634 def start(self):
635 sock = socket.create_server(('127.0.0.1', 0))
636 self.server = self.loop.run_until_complete(
637 asyncio.start_server(self.handle_client,
638 sock=sock))
639 return sock.getsockname()
640
641 def handle_client_callback(self, client_reader, client_writer):
642 self.loop.create_task(self.handle_client(client_reader,

Callers 3

test_start_serverMethod · 0.95
test_start_tlsMethod · 0.95

Calls 4

create_serverMethod · 0.45
run_until_completeMethod · 0.45
start_serverMethod · 0.45
getsocknameMethod · 0.45

Tested by

no test coverage detected