MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / predicate

Function predicate

test/asynchronous/utils.py:121–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119 try:
120
121 async def predicate():
122 return target_host_list == await discover()
123
124 await async_wait_until(predicate, "connected to all hosts")
125 except AssertionError as exc:

Callers 5

wait_for_readyMethod · 0.70
async_wait_untilFunction · 0.70
reduceFunction · 0.70
is_notFunction · 0.70
checkFunction · 0.70

Calls 1

discoverFunction · 0.70

Tested by 1

wait_for_readyMethod · 0.56