MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / _wait_until

Method _wait_until

test/test_change_stream.py:174–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

172 # up once an event that sorts after it shows up on the other
173 # shard. So, we wait on try_next to eventually return changes.
174 def _wait_until():
175 return stream.try_next() is not None
176
177 wait_until(_wait_until, "get change from try_next")
178

Callers

nothing calls this directly

Calls 1

try_nextMethod · 0.45

Tested by

no test coverage detected