MCPcopy Create free account
hub / github.com/microsoft/debugpy / notify_changed

Method notify_changed

src/debugpy/adapter/sessions.py:83–95  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 _sessions_changed.set()
82
83 def notify_changed(self):
84 with self:
85 self._changed_condition.notify_all()
86
87 # A session is considered ended once all components disconnect, and there
88 # are no further incoming messages from anything to handle.
89 components = self.client, self.launcher, self.server
90 if all(not com or not com.is_connected for com in components):
91 with _lock:
92 if self in _sessions:
93 log.info("{0} has ended.", self)
94 _sessions.remove(self)
95 _sessions_changed.set()
96
97 def wait_for(self, predicate, timeout=None):
98 """Waits until predicate() becomes true.

Callers 4

__init__Method · 0.95
wait_for_timeoutMethod · 0.95
notify_of_subprocessMethod · 0.80
__init__Method · 0.80

Calls 3

allFunction · 0.85
infoMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected