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

Function _create_condition

pymongo/lock.py:61–67  ·  view source on GitHub ↗

Represents a threading.Condition.

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

Source from the content-addressed store, hash-verified

59
60
61def _create_condition(
62 lock: threading.Lock, condition_class: Optional[Any] = None
63) -> threading.Condition:
64 """Represents a threading.Condition."""
65 if condition_class:
66 return condition_class(lock)
67 return threading.Condition(lock)
68
69
70def _async_create_condition(lock: Lock, condition_class: Optional[Any] = None) -> Condition:

Callers 3

__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected