MCPcopy Index your code
hub / github.com/RustPython/RustPython / _detach

Method _detach

Lib/asyncio/base_events.py:300–303  ·  view source on GitHub ↗
(self, transport)

Source from the content-addressed store, hash-verified

298 self._clients.add(transport)
299
300 def _detach(self, transport):
301 self._clients.discard(transport)
302 if len(self._clients) == 0 and self._sockets is None:
303 self._wakeup()
304
305 def _wakeup(self):
306 waiters = self._waiters

Callers 3

__del__Method · 0.80
_call_connection_lostMethod · 0.80
_call_connection_lostMethod · 0.80

Calls 3

_wakeupMethod · 0.95
lenFunction · 0.85
discardMethod · 0.45

Tested by

no test coverage detected