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

Function wait_until_ended

src/debugpy/adapter/sessions.py:274–284  ·  view source on GitHub ↗

Blocks until all sessions have ended. A session ends when all components that it manages disconnect from it.

()

Source from the content-addressed store, hash-verified

272
273
274def wait_until_ended():
275 """Blocks until all sessions have ended.
276
277 A session ends when all components that it manages disconnect from it.
278 """
279 while True:
280 with _lock:
281 if not len(_sessions):
282 return
283 _sessions_changed.clear()
284 _sessions_changed.wait()
285
286
287def report_sockets():

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…