MCPcopy Create free account
hub / github.com/tox-dev/filelock / first

Function first

tests/test_async_transition_gate.py:19–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 release_first = asyncio.Event()
18
19 async def first() -> None:
20 async with gate.hold():
21 first_holding.set()
22 order.append("first-in")
23 await release_first.wait()
24 order.append("first-out")
25
26 async def second() -> None:
27 async with gate.hold():

Calls 1

holdMethod · 0.80

Tested by

no test coverage detected