Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tox-dev/filelock
/ second
Function
second
tests/async_lock/test_transitions.py:32–34 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
30
order.append(
"first-out"
)
31
32
async
def
second() -> None:
33
async
with
gate.hold():
34
order.append(
"second-in"
)
35
36
first_task = asyncio.create_task(first())
37
await first_holding.wait()
Callers
4
test_hold_waits_for_a_predecessor_before_entering
Function · 0.85
test_hold_canceled_while_waiting_takes_its_ticket_out
Function · 0.85
test_canceled_hold_stops_waiting_when_work_is_no_longer_owed
Function · 0.85
test_parked_caller_settles_a_head_whose_hand_off_was_lost
Function · 0.85
Calls
1
hold
Method · 0.80
Tested by
no test coverage detected