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

Function _async_create_condition

pymongo/lock.py:70–74  ·  view source on GitHub ↗

Represents an asyncio.Condition.

(lock: Lock, condition_class: Optional[Any] = None)

Source from the content-addressed store, hash-verified

68
69
70def _async_create_condition(lock: Lock, condition_class: Optional[Any] = None) -> Condition:
71 """Represents an asyncio.Condition."""
72 if condition_class:
73 return condition_class(lock)
74 return Condition(lock)
75
76
77def _release_locks() -> None:

Callers 15

test_waitMethod · 0.90
test_wait_cancelMethod · 0.90
test_wait_unacquiredMethod · 0.90
test_wait_forMethod · 0.90
test_notifyMethod · 0.90
test_notify_allMethod · 0.90
test_context_managerMethod · 0.90
test_timeout_in_blockMethod · 0.90

Calls 1

ConditionClass · 0.85

Tested by 15

test_waitMethod · 0.72
test_wait_cancelMethod · 0.72
test_wait_unacquiredMethod · 0.72
test_wait_forMethod · 0.72
test_notifyMethod · 0.72
test_notify_allMethod · 0.72
test_context_managerMethod · 0.72
test_timeout_in_blockMethod · 0.72