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

Method wait

src/debugpy/common/messaging.py:1158–1173  ·  view source on GitHub ↗

Waits for the message loop to terminate, and for all enqueued Response message handlers to finish executing.

(self)

Source from the content-addressed store, hash-verified

1156 self._parser_thread.start()
1157
1158 def wait(self):
1159 """Waits for the message loop to terminate, and for all enqueued Response
1160 message handlers to finish executing.
1161 """
1162 parser_thread = self._parser_thread
1163 try:
1164 if parser_thread is not None:
1165 parser_thread.join()
1166 except AssertionError:
1167 log.debug("Handled error joining parser thread.")
1168 try:
1169 handler_thread = self._handler_thread
1170 if handler_thread is not None:
1171 handler_thread.join()
1172 except AssertionError:
1173 log.debug("Handled error joining handler thread.")
1174
1175 # Order of keys for _prettify() - follows the order of properties in
1176 # https://microsoft.github.io/debug-adapter-protocol/specification

Callers 13

test_eventsMethod · 0.95
test_requestsMethod · 0.95
test_responsesMethod · 0.95
mainFunction · 0.45
wait_for_exitFunction · 0.45
listenFunction · 0.45
wait_for_responseMethod · 0.45
_run_handlersMethod · 0.45
wait_forMethod · 0.45
wait_until_endedFunction · 0.45
wait_for_connectionFunction · 0.45

Calls 1

joinMethod · 0.45

Tested by 4

test_eventsMethod · 0.76
test_requestsMethod · 0.76
test_responsesMethod · 0.76