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

Method wait_for

tests/timeline.py:207–216  ·  view source on GitHub ↗
(self, expectation, freeze=None, explain=True)

Source from the content-addressed store, hash-verified

205 return self._wait_until_realized(expectation, freeze, explain, observe)
206
207 def wait_for(self, expectation, freeze=None, explain=True):
208 assert expectation.has_lower_bound, (
209 "Expectation must have a lower time bound to be used with wait_for()! "
210 "Use >> to sequence an expectation against an occurrence to establish a lower bound, "
211 "or wait_for_next() to wait for the next expectation since the timeline was last "
212 "frozen, or wait_until_realized() when a lower bound is really not necessary."
213 )
214 if explain:
215 log.info("Waiting for {0!r}", expectation)
216 return self._wait_until_realized(expectation, freeze, explain=explain)
217
218 def wait_for_next(self, expectation, freeze=True, explain=True, observe=True):
219 if explain:

Callers 1

waitMethod · 0.45

Calls 2

_wait_until_realizedMethod · 0.95
infoMethod · 0.80

Tested by

no test coverage detected