Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/mongodb/mongo-python-driver
/ c3
Method
c3
test/asynchronous/test_locks.py:47–51 ·
view source on GitHub ↗
(result)
Source
from the content-addressed store, hash-verified
45
return
True
46
47
async
def
c3(result):
48
await cond.acquire()
49
if
await cond.wait():
50
result.append(3)
51
return
True
52
53
t1 = asyncio.create_task(c1(result))
54
t2 = asyncio.create_task(c2(result))
Callers
nothing calls this directly
Calls
2
acquire
Method · 0.80
wait
Method · 0.45
Tested by
no test coverage detected