Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/mongodb/mongo-python-driver
/ _async_create_lock
Function
_async_create_lock
pymongo/lock.py:56–58 ·
view source on GitHub ↗
Represents an asyncio.Lock.
()
Source
from the content-addressed store, hash-verified
54
55
56
def
_async_create_lock() -> Lock:
57
""
"Represents an asyncio.Lock."
""
58
return
Lock()
59
60
61
def
_create_condition(
Callers
15
test_max_pool_size
Method · 0.90
test_max_pool_size_none
Method · 0.90
test_wait
Method · 0.90
test_wait_cancel
Method · 0.90
test_wait_cancel_contested
Method · 0.90
test_wait_cancel_after_notify
Method · 0.90
test_wait_unacquired
Method · 0.90
test_wait_for
Method · 0.90
test_wait_for_unacquired
Method · 0.90
test_notify
Method · 0.90
test_notify_all
Method · 0.90
test_context_manager
Method · 0.90
Calls
1
Lock
Class · 0.85
Tested by
15
test_max_pool_size
Method · 0.72
test_max_pool_size_none
Method · 0.72
test_wait
Method · 0.72
test_wait_cancel
Method · 0.72
test_wait_cancel_contested
Method · 0.72
test_wait_cancel_after_notify
Method · 0.72
test_wait_unacquired
Method · 0.72
test_wait_for
Method · 0.72
test_wait_for_unacquired
Method · 0.72
test_notify
Method · 0.72
test_notify_all
Method · 0.72
test_context_manager
Method · 0.72