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

Method _stop_serving

Lib/asyncio/proactor_events.py:891–896  ·  view source on GitHub ↗
(self, sock)

Source from the content-addressed store, hash-verified

889 self._accept_futures.clear()
890
891 def _stop_serving(self, sock):
892 future = self._accept_futures.pop(sock.fileno(), None)
893 if future:
894 future.cancel()
895 self._proactor._stop_serving(sock)
896 sock.close()

Callers

nothing calls this directly

Calls 4

popMethod · 0.45
filenoMethod · 0.45
cancelMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected