Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tox-dev/filelock
/ second
Function
second
tests/test_async_transition_gate.py:26–28 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
24
order.append(
"first-out"
)
25
26
async
def
second() -> None:
27
async
with
gate.hold():
28
order.append(
"second-in"
)
29
30
first_task = asyncio.create_task(first())
31
await first_holding.wait()
Callers
2
test_hold_waits_for_a_predecessor_before_entering
Function · 0.85
test_hold_canceled_while_waiting_lets_the_predecessor_free_the_ticket
Function · 0.85
Calls
1
hold
Method · 0.80
Tested by
no test coverage detected