Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/python-trio/trio
/ acquire
Method
acquire
src/trio/_tests/test_sync.py:510–511 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
508
self.s.send_nowait(None)
509
510
async
def
acquire(self) -> None:
511
await self.s.send(None)
512
513
def
release(self) -> None:
514
self.r.receive_nowait()
Callers
3
do_acquire
Function · 0.45
test_Lock_and_StrictFIFOLock
Function · 0.45
test_lock_acquire_unowned_lock
Function · 0.45
Calls
1
send
Method · 0.45
Tested by
no test coverage detected