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

Function _async_cond_wait

pymongo/lock.py:84–88  ·  view source on GitHub ↗
(condition: Condition, timeout: Optional[float])

Source from the content-addressed store, hash-verified

82
83
84async def _async_cond_wait(condition: Condition, timeout: Optional[float]) -> bool:
85 try:
86 return await wait_for(condition.wait(), timeout)
87 except asyncio.TimeoutError:
88 return False
89
90
91def _cond_wait(condition: threading.Condition, timeout: Optional[float]) -> bool:

Callers 4

runMethod · 0.90
_select_servers_loopMethod · 0.90
request_check_allMethod · 0.90
_get_connMethod · 0.90

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected