Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
pop
Method · 0.45
fileno
Method · 0.45
cancel
Method · 0.45
close
Method · 0.45
Tested by
no test coverage detected