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

Method wait_for_response

tests/net.py:165–173  ·  view source on GitHub ↗

Blocks until the request completes, and returns self.request.

(self, timeout=None)

Source from the content-addressed store, hash-verified

163 )
164
165 def wait_for_response(self, timeout=None):
166 """Blocks until the request completes, and returns self.request."""
167 if self._worker_thread.is_alive():
168 log.info("Waiting for response to {0} ...", self)
169 self._worker_thread.join(timeout)
170
171 if self.exception is not None:
172 raise self.exception
173 return self.request
174
175 def response_text(self):
176 """Blocks until the request completes, and returns the response body."""

Callers 4

response_textMethod · 0.95
requestMethod · 0.45
__exit__Method · 0.45
test_responsesMethod · 0.45

Calls 3

infoMethod · 0.80
is_aliveMethod · 0.45
joinMethod · 0.45

Tested by 1

test_responsesMethod · 0.36